// ==UserScript==
// @name           Gladiatus Crazy AddOn New Server
// @namespace      http://www.apo.users.uth.gr
// @description    The craziest add-on for gladiatus ever!
// @include        *.gladiatus.*
// @exclude        *board.gladiatus.*
// ==/UserScript==
//Copyright (C) 2010 - 2012, Apo59m, DarkThanos and djor

//################################################################################################################################
//## GENERAL SCRIPT'S VALUES / ΓΕΝΙΚΕΣ ΜΕΤΑΒΛΗΤΕΣ ΤΟΥ SCRIPT
//################################################################################################################################
//Script run time
var day=new Date();
var start_run_time=day.getTime();
//End script run time

var doc=document;
var version = "291";
var BETA = "";
var versionDotted = version.match(/(\d)/gi);
versionDotted = versionDotted[0]+'.'+versionDotted[1]+'.'+versionDotted[2]+BETA;
var unsafeWindow = this['unsafeWindow'] || window;
if(document.location.href.match(/^(.*\?)mod=(\w+)/)){
	if(document.location.href.match(/^(.*\?)mod=(\w+).*sh=([0-9a-fA-F]+)/)){
		var GCAO_result = document.location.href.match(/^(.*\?)mod=(\w+).*sh=([0-9a-fA-F]+)/);
		var GCAO_mod = GCAO_result[2];
		var GCAO_secureCode = GCAO_result[3];
	}else{
		var GCAO_result = document.location.href.match(/^(.*\?)mod=(\w+)/);
		var GCAO_mod = GCAO_result[2];
		if(document.getElementById('menue_messages')){
			var GCAO_secureCode = document.getElementById('menue_messages').getAttribute('href').match(/sh=([0-9a-fA-F]+)/)[1];
		}else{
			var GCAO_secureCode = 'error';
		}
	}
	var GCAO_allresult = GCAO_result[0]; //ex.: http://s3.gladiatus.gr/game/index.php?mod=overview&sh=3311f55ccc62c53c42170cdf78b1cf59
	var GCAO_siteurl = GCAO_result[1]; //ex.: http://s3.gladiatus.gr/game/index.php?
	
	var UrlOverview = GCAO_siteurl + 'mod=overview&sh=' + GCAO_secureCode;
	if(document.location.href.match(/http\:\/\/s(\d+)/i)){var GCAO_server = document.location.href.match(/http\:\/\/s(\d+)/i)[1];}
	else{var GCAO_server = "1";}
}
if(document.location.href.match(/submod=(\w+)/)){var GCAO_submod = document.location.href.match(/submod=(\w+)/)[1];}
else{var GCAO_submod = 'noSubmod';}

//Fix unsafeWindow for Chrome
if(navigator.userAgent.toLowerCase().match(/chrome/i)){
    var div = document.createElement("div");
    div.setAttribute("onclick", "return window;");
    unsafeWindow = div.onclick();
};

//Images used in more than one function
var img_clear = '%3D';

//################################################################################################################################
//## COUNTRY / LANGUAGE - ΧΩΡΑ / ΓΛΩΣΣΑ
//################################################################################################################################
if(document.location.href.match(/gladiatus\.(\w+)/)){
	var GCAO_lang = document.location.href.match(/(\w*)\.gladiatus\.(\w+)\.*(\w*)/);
	if(GCAO_lang[1].match("s") || GCAO_lang[1].match("www")){
		if(GCAO_lang[3]){GCAO_lang = GCAO_lang[2] + '.' + GCAO_lang[3];}
		else{GCAO_lang = GCAO_lang[2];}
	}
	else{GCAO_lang = GCAO_lang[1];}
	if(GCAO_lang.match('com.')){GCAO_lang=GCAO_lang.replace('com.','')}
	
	if(GCAO_lang=='de' && GCAO_server=='201'){
		GCAO_lang='eng';
	}else if(GCAO_lang=='ar'){
		GCAO_lang='es';
	}
	
	switch(GCAO_lang){
	case 'gr':
		//Shurtcut Buttons
		var L_guildMailTitle='Γράψε μήνυμα τάγματος';
		var L_guildMedicTitle='Πήγαινε στο ιατρικό κέντρο';
		var L_guildMarketTitle='Πήγαινε στην αγορά τάγματος';
		var L_guildStorageTitle='Πήγαινε στην αποθήκη τάγματος';
		var L_staticsTitle='Τα στατιστικά μου';
		var L_guildSafeTitle='Πήγαινε την τράπεζα τάγματος';
		var L_guildWarTitle='Πήγαινε στην αίθουσα του άρχοντα του πολέμου';
		var L_guildJailTitle='Πήγαινε στην φυλακή τάγματος';
		var L_guildLibraryTitle='Πήγαινε στην βιβλιοθήκη τάγματος';
		//Alerts
		var L_sure='Είσαι σύγουρος;';
		var L_weaponAlert='<font color="red">Δεν</font> φοράς όπλο<font color="red">!</font>';
		var L_newMail='Έχεις ένα <font color="yellow">νέο</font> μήνυμα στο φόρουμ<font color="yellow">!</font>';
		var L_Full='Γεμάτο';
		var L_New='ΝΕΑ';
		var L_newsAlert='Υπάρχει ένα <font color="yellow">νέο</font> μήνυμα στα Νέα του GCA<font color="yellow">!</font>';
		var L_PackagesWillExpire='Τα πακέτα λήγουν σύντομα';
		var L_hours='ώρες';
		//Change Image
		var L_changePlayerImage='Άλλαξε την εικόνα του παίχτη';
		var L_Overfloated='Γεμάτο';
		var L_plImageWillBeLost='Η εικόνα του παίχτη δεν θα αποθηκευτεί';
		var L_plDecriptionWillBeCut='Η περιγραφή του παίχτη θα κοπεί για να χωράει';
		var L_defImages='Προεπιλεγμένες εικόνες';
		var L_imgMadeFrom='Οι εικόνες δημιουργήθηκαν από τον';
		var L_changeGuildImage='Άλλαξε την εικόνα τάγματος';
		var L_gImageWillBeLost='Η εικόνα του τάγματος δεν θα αποθηκευτεί';
		var L_gDescrtipionWillBeCut='Η περιγραφή του τάγματος θα κοπεί για να χωράει';
		//Training
		var L_spent='ξοδεύτηκαν';
		var L_SimOfTraining = 'Μετρητής Κόστους Εκπαιδεύσεων';
		var L_Stat = 'Στατιστικά';
		var L_From = 'Από';
		var L_To = 'Μέχρι';
		var L_Cost = 'Κόστος';
		var L_TrainingCampLevel = 'Επίπεδο χώρου εκπαίδευσης τάγματος';
		var L_Reduction ='Μείωση:';
		var L_TotalCost = 'Συνολικό Κόστος:';
		var L_Calculate = 'Υπολογισμός';
		var L_TotalCostTitle = 'Τα στατιστικά μου στην αριστερή στήλη';
		var L_CalculateTitle = 'Υπολογισμός του κόστους όλων των στατιστικών';
		//Simulator
		var L_Simulator='Προσομοιωτής';
		var L_arena='ΑΡΕΝΑ';
		var L_Battles='Μάχες';
		var L_Won='Νίκες';
		var L_Lost='Ήττες';
		var L_Draws='Ισσοπαλίες';
		var L_Damage='Ζήμιά';
		var L_myAvDamage='Μέση ζημιά μου';
		var L_hisAvDamage='Μέση ζημιά αντιπάλου';
		var L_Life='Πόντοι ζωής';
		var L_myRemLife='Υπολοιπόμενοι πόντοι ζωής μου';
		var L_hisRemLife='Υπολοιπόμενοι πόντοι ζωής αντιπάλου';
		var L_trainingSim='Προσομοιωτής εκπαίδευσης';
		var L_playerA='Παίχτης Α';
		var L_playerB='Παίχτης Β';
		var L_selectMethod='Επιλογή μεθόδου';
		var L_selectEnemy='Επιλογή εχθρού';
		var L_byName='Παίχτης με όνομα';
		var L_byID='Παίχτης με ID';
		var L_go='Προσομοίωση';
		var L_winnigChance='Πιθανότητα να νικήσεις';
		var L_PlayerAAvDamage='Μέση ζημιά του παίχτη Α';
		var L_PlayerBAvDamage='Μέση ζημιά του παίχτη Β';
		var L_Results='Αποτελέσματα';
		var L_ClearAll='Εκαθάριση';
		var L_playerNotFound='Ο παίχτης δεν βρέθηκε';
		var L_searchData='Ανάκτηση δεδομένων...';
		var L_noStats='Δεν υπάρχουν στατιστικά';
		var L_thisIsLocation='Αυτή είναι περιοχή';
		//Guild
		var L_StorageInfo='Πληροφορίες αποθήκης';
		var L_itemNum='Αριθμός αντικειμένων';
		var L_TotalValue='Συνολική αξία';
		var L_currentLife='Πόντοι ζωής';
		var L_lostLife='Χαμένοι πόντοι ζωής';
		var L_healLife='Πόντοι από θεραπεία';
		var L_afterLife='Πόντοι μετά την θεραπεία';
		var L_findGold='Βρές τον χρυσό';
		//Auction
		var L_bidNum='Αριθμός πλειοδοτήσεων';
		var L_Items='Αντικείμενα';
		var L_selectItem='Επιλογή αντικειμένου';
		var L_Type='Τύπος';
		var L_selectType='Επιλογή τύπου';
		var L_Clear='Εκαθάριση';
		var L_veryShort='Πολύ Μικρή';
		var L_anunGuild='Ανακοίνωση στο τάγμα';
		var L_MessageWasSent='Το μήνυμα εστάλη!';
		var L_minDamage='Ελάχιστη max-ζημιά';
		var L_weaponsFound='Όπλα που βρέθηκαν';
		var L_improvementsFound='Αναβαθμίσεις που βρέθηκαν';
		var L_itemsFound='Αντικείμενα που βρέθηκαν';
		var L_select='Επιλέξτε';
		var L_hideGoldHere='Κρύψε τον χρυσό σου εδώ';
		var L_priceValue='Τιμή = Αξία';
		//Online Players
		var L_OnlinePlayers='Ενεργοί παίχτες';
		var L_guildPlayers='Ενεργοί παίχτες τάγματος';
		var L_familyPlayers='Ενεργοί οικογενιακοί παίχτες';
		var L_noOnlinePlayer='Δεν υπάρχουν ενεργοί παίχτες';
		var L_sentMessage='Γράψε μήνυμα';
		//Packages
		var L_gold='Χρυσός';
		var L_Packages='Πακέτα';
		var L_invItems='Αποθηκευμένα αντικείμενα';
		var L_packedValue='Αξία αντικειμένων';
		var L_invValue='Αξία αποθηκευμένων αντικεμένων';
		var L_total='Σύνολο';
		var L_PackedGold='Πακεταρισμένος χρυσός';
		var L_totalGold='Συνολικός κερδισμένος χρυσός';
		var L_totalItemValue='Συνολική αξία αντικειμένων';
		//Chat
		var L_checkAll='Όλοι';
		var L_Username='Όνομα χρήστη';
		var L_Country='Χώρα';
		var L_GuildChat='Chat Τάγματος';
		var L_CountryChat='Chat Χώρας';
		var L_GlobalChat='Παγκόσμιο Chat';
		//Other
		var L_ID='ID παίχτη';
		var L_ratioTitle='Ratio Αναλώσιμων | Ratio Τιμής';
		var L_noGuildText='Δεν είσαι σε τάγμα.<br>Αν είσαι πρέπει να πας <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >εδώ</a> για να ανανεώσεις τα στοιχεία σου';
		var L_ReadyFor_expedition="Είσαι έτοιμος για αποστολή.";
		var L_ReadyFor_dungeon="Είσαι έτοιμος για μάχη στα μπουντρούμια.";
		var L_ReadyFor_arena="Είσαι έτοιμος για μάχη στην αρένα.";
		var L_ReadyFor_ct="Είσαι έτοιμος για μάχη στην αρένα κασμοσυρροής.";
		var L_Redirect_Q="Θες να μεταφερθείς εκεί;";
		//Settings
		var L_GCASettings='Ρυθμίσεις του Gladiatus Crazy Add On';
		var L_HeaderSettings='Ρυθμίσεις του Header';
		var L_DisplayLinkButtons='Εμφάνιση των κουμπιών στο header';
		var L_DisplayAuctionStatus='Εμφάνιση της κατάστασης δημοπρατηρίου στο header';
		var L_DisplayMerchantStatus='Εμφάνιση της κατάστασης δημοπρατηρίου μισθοφόρων στο header';
		var L_DisplayOnlinePlayersButton='Εμφάνιση του "Ενεργοί Παίχτες" κουμπιού στο header';
		var L_DisplayLinkBox='Εμφάνιση του κουτιού των υπερσυνδέσμων στα δεξιά της σελίδας';
		var L_TimersSettings='Ρυθμίσεις Μετρητών';
		var L_DisplayLastBeingAttacked='Εμφάνιση του χρόνου που έχει περάσει από την τελευταία επίθεση που δέχτηκες από Αρένα';
		var L_DisplayLastBeingAttacked2='Εμφάνιση του χρόνου που έχει περάσει από την τελευταία επίθεση που δέχτηκες από Αρ.Κοσμοσυρροής';
		var L_AuctionSettings='Ρυθμίσεις Δημοπρατηρίου';
		var L_FillAuctionPrices='Αυτόματη συμπλήρωση των τιμών στο δημοπρατήριο';
		var L_ChangeItemsBgColor='Αλαγή των χρωμάτων του παρασκηνίου των αντικειμένων (βάση της ποιότητας)';
		var L_AuctionMoreItemsLavels='Περισσότερες επιλογές επιπέδου αντικειμένων στην αναζήτηση του δημοπρατηρίου';
		var L_DisplayItemNumAndBids='Εμφάνιση του αριθμού των αντικειμένων και του αριθμού των προσφορών';
		var L_DisplayItemList='Εμφάνιση της λίστας αντικειμένων στην αναζήτηση της αγοράς και του δημοπρατηρίου';
		var L_ExpandAuctionTable3='Επέκταση του πίνακα του δημοπρατηρίου (3 αντικείμενα ανά γραμμή)';
		var L_SimulatorSettings='Ρυθμίσεις προσομοιωτή';
		var L_enSimulator='Ενεργοποίηση του PvP προσομοιωτή στο προφίλ του κάθε παίχτη';
		var L_setFightNum='Αριθμός προσομοιώσεων';
		var L_maximum='μέγιστο';
		var L_guildSettings='Ρυθμίσεις Τάγματος & Αγοράς';
		var L_guildStoreInfo='Εμφάνιση του κουτιού πληροφοριών στην αποθήκη τάγματος';
		var L_moreGuildStats='Επιπλέον στατιστικά στην αίθουσα του άρχοντα του πολέμου';
		var L_monsterSimulator='Εμφάνιση του προσομοιωτή εκπαίδευσης στον χώρος εκπαίδευσης στο τάγμα';
		var L_gmailChanges='Ενεργοποίηση των αλλαγών όταν στέλνεις μήνυμα τάγματος';
		var L_ratioOpt='Εμφάνιση του αριθμού "Ratio" (αναλώσιμων και τιμής) για κάθε αντικείμενο στην αγορά';
		var L_enPriceRatio='Ενεροποίηση του αριθμού "Ratio" τιμής (δεν είναι πολύ ακριβής)';
		var L_alertSettings='Ρυθμίσεις ειδοποιήσεων';
		var L_immedBuy='Μήνυμα επαλήθευσης κατά την εξαγορά αντικειμένων στο δημοπρατήριο';
		var L_reduceTimeEx='Μήνυμα επαλήθευσης κατά την πληρωμή ρουμπινιού για επίθεση στης αποστολές';
		var L_questOpt='Εμφάνιση ειδοποίησης εάν μπορώ να πάρω νέα αποστολή ή εμφάνιση του χρόνου';
		var L_forumMessageOpt='Ειδοποίηση εάν έχω νέο μήνυμα στο φορουμ (με ένα [ ! ] δίπλα στο φορουμ)';
		var L_weaponAlertOpt='Ειδοποίηση εάν δεν φοράω όπλο (με ένα [ ! ] δίπλα στην προεπισκόπηση)';
		var L_otherSettings='Άλλες ρυθμίσεις';
		var L_msgchangesOpt='Ενεργοποίηση των αλλαγών στα μηνύματα';
		var L_enBBCODE='Ενεργοποίηση του BBCODE στα μηνύματα';
		var L_enChat='Ενεργοποίηση του Chat (Τάγματος, Χώρας και Παγκόσμιο)';
		var L_enRememberTabs='Απομνημόνευση την καρτέλας τσάντας και πωλητή';
		var L_enImages='Ενεργοποίηση του συστήματος των αλλαγμένων εικόνων παιχτών και ταγμάτων';
		var L_disPackageCounters='Εμφάνιση των μετρητών στα πακέτα';
		var L_disID='Εμφάνιση του ID κάθε παίχτη κάτω από τα στατιστικά του';
		var L_disHeal='Εμφάνιση της Θαραπείας κάθε παίχτη κάτω από τα στατιστικά του';
		var L_disTrainingChages='Εμφάνιση των βασικών εκπαιδεύσεων και της αλλαγής του μεγιστου στην εκπαίδευση';
		var L_enHighlight='Υποφώτιση των αντικειμένων που δεν μπορούν να αγοραστούν';
		var L_enStyleFixes='Ενεργοποίηση των διορθώσεων του style';
		var L_speedSettings='Ρυθμίσεις ταχύτητας';
		var L_stopPulling='Παύση άντλησης πληροφοριών κατά την φόρτωση (ρύθμιση για αργές συνδέσεις)';
		var L_willStop='Αυτή η επιλογή θα <font color="red"><b>σταματήσει</b></font> τα';
		var L_customCursor='Αλλαγή του κέρσορα';
		var L_Save='Σώσε';
		var L_AboutUs='Σχετικά με μας';
		var L_Settings='Ρυθμίσεις';
		var L_donateTitle='Δωρίστε στο Gladiatus Crazy Add On';
		var L_donateText='Ευχαριστήστε μας και ταυτόχρονα βοηθήστε μας δωρίζοντας μας μερικά χρήματα στον λογαριασμό μας στην PayPal. Με την δωρεά σας αυτή θα μας βοηθήσετε να συνεχίσουμε να δουλεύουμε πάνω στο πρόσθετο αυτό που σημαίνει περισσότερες αναβαθμίσεις, καινούρια χαρακτηριστικά και καθόλου bugs (προβλήματα)! Πατήστε το κουμπί για να μας υποστηρίξετε';
		var L_description='Το Gladiatus Crazy Add On είναι ένα δωρεάν πρόσθετο που βοηθάει τον χρήστη στο παιχνίδι Gladiatus μέσα από τα πολλά χαρακτηριστικά που προσφέρει. Στην ουσία χρησιμοποιεί καλήτερα της πληροφορίες που ο server του παιχνιδιού δίνει στον browser του χρήστη. Απολαύστε το, καλή διασκέδαση και καλές μάχες!';
		var L_aboutTitle='Σχετικά με το Gladiatus Crazy Add On';
		var L_descriptionTitle='Περιγραφή';
		var L_Programmers='Προγραμματιστές';
		var L_Translators='Μεταφραστές';
		var L_Hostpage='Ιστοσελίδα';
		var L_ContactUs='Επικοινωνήστε μαζί μας';
		var L_Contact1='με e-mail στο Apo59m@gmail.com ή GreatApo@gmail.com';
		var L_Contact2='με νήνυμα στου παίχτες μας στους Ελληνικούς server (GreatApo στον s1 και DarkThanos στον s2) ή στον Γαλλικό server (djor στον s?)';
		var L_Contact3='ή από τα 3 ανοιχτά topic στο <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Ελληνικό</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">Γαλλικό</a> και <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">Αμερικάνικο</a> φόρουμ';
		var L_thanksTo='Πολλά ευχαριστώ στους';
		var L_MonsterHunters='Κυνηγοί στατιστικών/ονομάτων τεράτων';
		var L_ItemHunters='Κυνηγοί αντικειμένων';
		var L_HideGoldInAuction='Χρώμα στο input εάν μπορείς να πουλήσεις το αντικείμενο στους πωλητές στην ίδια τιμή';
		var L_guildSafeChanges='Ενεργοποίηση των αλλαγών στην τράπεζα τάγματος';
		var L_guildMedicChanges='Εμφάνιση περισσότερων πληροφοριών στο Ιατρικό κέντρο';
		var L_foodBackColor='Κόκκινο χρώμα πίσω από τα φαγητά που δίνουν περισσότερους πόντους ζωής από ότι χρειάζεται (στην προεπισκόπηση)';
		var L_packageAlertOpt='Ειδοποίηση για την λήξη των πακέτων (12 ώρες πριν)';
		var L_bugSettings='Ρυθμίσεις προβλημάτων (Bugs)';
		var L_showBugReports='Εμφάνιση αναφορών προβλημάτων';
		var L_autoReportBugs='Αυτόματη αναφορά των προβλήματων στον server';
		var L_showNewMessages='Εμφάνιση των νέων μηνυμάτων';
		var L_MorePriceInfoInAuction='Εμφάνιση περισσότερων πληροφοριών για τις τιμές';
		var L_CheckAffordInAuction='Εμφάνιση αν το αντικείμενο μπορεί να αγοραστεί (με &#10003; / &#10007;)';
		var L_allFilterAlert='Μήνυμα επαλήθευσης στο δημοπρατήριο όταν το "Είδος αντικειμένου" είναι "Όλα"';
		var L_BetterLife='Καλύτερη προεπισκόπηση των πόντων ζωής';
		var L_fightReminder='Υπενθύμιση μάχης';
		//v2.6.0
		var L_sentQuickMessageBox='Στείλε γρήγορο κυκλικό μήνυμα';
		var L_send='Στείλε';
		var L_merchants='Πωλητές';
		var L_QuestsInfo='Πληροφορίες Αποστολών';
		var L_Takenquests='Δεσμευμένες αποστολές';
		var L_Completedquests='Τελειωμένες αποστολές';
		var L_Failedquests='Αποτυχημένες αποστολές';
		var L_InactiveQuests='Αδέσμευτες Αποστολές';
		var L_Workquests='Αποστολές δουλειάς';
		var L_Itemsquests='Αποστολές αντικειμένων';
		var L_Expeditionquests='Αποστολές αποστολών';
		var L_Dungeonquests='Αποστολές μπουντρουμιών';
		var L_Combatquests='Αποστολές μαχών';
		var L_Arenaquests='Αποστολές αρένας';
		var L_Turmaquests='Αποστολές κοσμοσυρροής';
		var L_DisplayQuickMessageBox='Εμφάνιση του κουτιού για γρήγορο κυκλικό μήνυμα';
		var L_DisplayDealerTimer='Εμφάνιση του χρόνου πωλητών (ανανέωση αγαθών)';
		var L_titleGenerate='Δημιουργία Εικόνας Υπογραφής';
		var L_clickToGenerate='Πατήστε το κουμπί "Δημιουργία" για να δημιουργήσετε μια φωτογραφία με τα στατιστικά σας!';
		var L_generate='Δημιουργία';
		var L_saveOnline='Αποθήκευση online';
		var L_uploadingImage='Ανέβασμα φωτογραφίας στον server';
		var L_searchUrl='Αναζήτηση συνδέσμου';
		var L_imageUrl='Σύνδεσμος φωτογραφίας';
		var L_imageNotFound='Η φωτογραφία δεν βρέθηκε!';
		var L_calculateGuildUpgradeTitle='Υπολογισμός του χρυσού ανά παίχτη με βάση το επίπεδο';
		var L_Include='Προσθήκη';
		var L_FixedGold='Σταθερός χρυσός';
		var L_GoldPerPlayer='Χρυσός ανά παίχτη';
		var L_TargetGold='Απαιτούμενος χρυσός';
		var L_GoldInBank='Χρυσός στην τράπεζα';
		var L_notCalculated='μη υπολογίσιμο';
		var L_Difference='Διαφορά';
		var L_Attacks='Επιθέσεις';
		var L_Defences='Άμυνες';
		var L_Friendly='Φιλικές';
		var L_GoldLimit='Όριο χρυσού';
		//v2.6.1
		var L_guildLife='Ζωή Τάγματος';
		var L_addAll='+ Όλα';
		var L_donateAll='Δώρησε τα όλα';
		var L_visiteYourGuildsMemberPage='Για να σείλεις μήνυμα πρέπει πρώτα να αποθηκεύσεις τα ID των μελών του τάγματός σου.\n Θες να το κάνεις τώρα;';
		var L_Done='Έγινε!';
		var L_ManageMercenaries='Διαχείριση Μισθοφόρων';
		var L_name='Όνομα';
		var L_protect='Προστασία';
		var L_leave='Άφησε';
		var L_selected='Επιλεγμένο';
		var L_itemsAreNotSaved='Τα tooltips των αντικειμένων δεν είναι αποθυκευμένα για αυτόν τον χαρακτήρα.\nΠρέπει να επισκευτήτε το προφίλ αυτού του χαρακτήρα.';
		var L_mercenariesAreNotSaved='Τα tooltips των μισθοφόρων δεν είναι αποθυκευμένα\nΠρέπει να επισκευτήτε το προφίλ του χαρακτήρα των μποντουμιών σας.';
		var L_changeAuctionCompareItems='Αλλαγή των tooltips σύγκρισης δημοπρατηρίου με βάση τον επιλεγμένο χαρακτήρα';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Αριθμός ταγμάτων';
		//v2.8.0
		var L_playersGold='Τον χρυσό μου';
		var L_time='χρόνος'
		var L_expedition='Αποστολή';
		var L_turma='Κοσμοσυρροής';
		var L_dungeon='Μπουντρούμι';
		var L_titleSettings='Ρυθμίσεις τίτλου σελίδας';
		var L_enableTitle='Ενεροποίηση του αλλαγμένου τίτλου σελίδας';
		var L_showLogoTitle='Εμφάνιση του "Gladiatus" στον τίτλο';
		var L_showServerTitle='Εμφάνιση του server και τις χώρας στον τίτλο';
		var L_customTitleType='Επιλογή άλλων πληροφοριών για τον τίτλο'
		var L_enableTitlePoints='Προσθήκη των πόντων αποστολών/μπουντρουμιών δίπλα στον χρόνο τους';
		var L_cancelAll='Ακύρωση Όλων';
		var L_numberOfMyItems='Αριθμός των αντικειμένων μου';
		var L_seeThisReport='Δες αυτή την αναφορά';
		var L_TopBar='Εμφάνιση την μπάρας στο πάνω μέρος της σελίδας κατά το scroll down';
		//v2.9.0
		var L_titleImages = 'Ρυθμίσεις εικόνων';
		var L_showCustomsTitle = 'Εάν υπάρχει κουστούμι, δείξε το κουστούμι και όχι την εικόνα';
		var L_collectGold='Μάζεμα Χρυσού';
		var L_itemSearch='Αναζήτηση Αντικειμένων';
		var L_noteRenewMerchantsTime='Εάν ο χρόνος των πωλητών έχει τελειώσει, νέα αγαθά θα έρθουν';
		var L_merchantsItems='Αντικείμενα πωλητών';
		var L_auctionItems='Αντικείμενα δημοπρατηρίου';
		var L_itemName='Όνομα αντικειμένου';
		break;
	case 'fr':
		//Shurtcut Buttons
		var L_guildMailTitle='Ecrire un message à la guilde';
		var L_guildMedicTitle='Aller à la Villa Medici';
		var L_guildMarketTitle='Aller au marché de guilde';
		var L_guildStorageTitle='Aller à l\'entrepôt de guilde';
		var L_staticsTitle='Mes stats';
		var L_guildSafeTitle='Go to guild\'s bank';
		var L_guildWarTitle='Go to guild\'s war camp';
		var L_guildJailTitle='Go to guild\'s jail';
		var L_guildLibraryTitle='Go to guild\'s library';
		//Alerts
		var L_sure='Êtes vous sûr ?';
		var L_weaponAlert='Vous <font color="red">ne </font>portez <font color="red">pas</font> d\'arme <font color="red">!</font>';
		var L_newMail='<font color="yellow">Nouveau</font> message sur le forum <font color="yellow">!</font>';
		var L_Full='Plein';
		var L_New='NEW';
		var L_newsAlert='Il y a une <font color="yellow">nouveauté</font> à propos de GCA <font color="yellow">!</font>';
		var L_PackagesWillExpire='Les paquets vont bientôt expirer'; 
		var L_hours='heures';
		//Change Image
		var L_changePlayerImage='Changer l\'image du joueur';
		var L_Overfloated='Overfloated';
		var L_plImageWillBeLost='L\image du joueur sera perdue et ne sera pas sauvegardée';
		var L_plDecriptionWillBeCut='La description du joueur va être tronquée';
		var L_defImages='Afficher les images par défaut';
		var L_imgMadeFrom='Les images proviennent de';
		var L_changeGuildImage='Modifier l\image de guilde';
		var L_gImageWillBeLost='L\'image de guilde va être perdue et ne sera pas sauvegardée';
		var L_gDescrtipionWillBeCut='La description de guilde va être tronquée';
		//Training
		var L_spent='dépensé';
		var L_SimOfTraining = 'Simulateur d\'entrainements';
		var L_Stat = 'Statistique';
		var L_From = 'De';
		var L_To = 'A';
		var L_Cost = 'Coût';
		var L_TrainingCampLevel = 'Niveau du terrain';
		var L_Reduction ='R&eacute;duction :';
		var L_TotalCost = 'Coût total :';
		var L_Calculate = 'Calculer';
		var L_TotalCostTitle = 'Mettre mes stats dans la colonne de gauche';
		var L_CalculateTitle = 'Calculer le coût des différentes statistiques';
		var L_ClearAllTitle = 'Réinitialiser les stats';
		//Simulator
		var L_Simulator='Simulateur';
		var L_arena='ARÈNE';
		var L_Battles='Combats';
		var L_Won='Victoires';
		var L_Lost='Défaites';
		var L_Draws='Matchs nuls';
		var L_Damage='Dégâts';
		var L_myAvDamage='Vos dégâts moyens';
		var L_hisAvDamage='Dégâts moyen de l\'adversaire';
		var L_Life='Vie';
		var L_myRemLife='Votre vie restante';
		var L_hisRemLife='Vie restante de votre adversaire';
		var L_trainingSim='Simulateur';
		var L_playerA='Joueur A';
		var L_playerB='Joueur B';
		var L_selectMethod='Choisissez la méthode';
		var L_selectEnemy='Choisissez l\'adversaire';
		var L_byName='Joueur, par son pseudo';
		var L_byID='Joueur, par son ID';
		var L_go='GO!';
		var L_winnigChance='Chance de gagner';
		var L_PlayerAAvDamage='Dégâts moyens du joueur A';
		var L_PlayerBAvDamage='Dégâts moyens du joueur B';
		var L_Results='Résultats';
		var L_ClearAll='Reset';
		var L_playerNotFound='Joueur introuvable';
		var L_searchData='Recherche d\'informations...';
		var L_noStats='Pas de stats disponibles';
		var L_thisIsLocation='C\'est un lieu...';
		//Guild
		var L_StorageInfo='Infos sur l\'entrepôt';
		var L_itemNum='Nombre d\'objets';
		var L_TotalValue='Valeur totale';
		var L_currentLife='Points de vie actuels';
		var L_lostLife= 'Points de vie manquants';
		var L_healLife= 'Points de vie restaurés';
		var L_afterLife= 'Points de vie après un soin';
		var L_findGold='Trouver l\'or';
		//Auction
		var L_bidNum='Nombre d\'enchérissement';
		var L_Items='Objets';
		var L_selectItem='Choisissez l\'objet';
		var L_Type='Type';
		var L_selectType='Choisissez le type';
		var L_Clear='Reset';
		var L_veryShort='Très court'; 
		var L_anunGuild='Annoncer à la guilde'; 
		var L_MessageWasSent='Message envoyé !'; 
		var L_minDamage='Minimum des dégâts max ';
		var L_weaponsFound='Armes trouvées';
		var L_improvementsFound='Improvements found';
		var L_itemsFound='Items found';
		var L_select='Choisissez';
		var L_hideGoldHere='You can hide your gold here';
		var L_priceValue='Price = Value';
		//Online Players
		var L_OnlinePlayers='Joueurs en ligne';
		var L_guildPlayers='Membres de la guilde en ligne';
		var L_familyPlayers='Membre de la famille en ligne';
		var L_noOnlinePlayer='Personne n\'est en ligne';
		var L_sentMessage='Envoyer un message';
		//Packages
		var L_gold='Or';
		var L_Packages='Paquets';
		var L_invItems='Objets de l\'inventaire';
		var L_packedValue='Valeur des objets en paquet';
		var L_invValue='Valeur des objets de l\'inventaire';
		var L_total='Total';
		var L_PackedGold='Or en paquet';
		var L_totalGold='Total d\'or gagné';
		var L_totalItemValue='Valeur totale des objets';
		//Chat
		var L_checkAll='Cocher tout le monde';
		var L_Username='Pseudo';
		var L_Country='Pays';
		var L_GuildChat='Chat de guilde';
		var L_CountryChat='Chat du pays';
		var L_GlobalChat='Chat mondial';
		//Other
		var L_ID='ID du joueur';
		var L_ratioTitle='Ratio des aliments | Ratio des objets';
		var L_noGuildText=	'Vous n\'avez pas de guilde.<br>Si vous en avez une, allez <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >ici</a> pour mettre vos informations à jour';
		var L_ReadyFor_expedition="You are ready for an expedition fight.";
		var L_ReadyFor_dungeon="You are ready for a dungeon fight.";
		var L_ReadyFor_arena="You are ready for an arena fight.";
		var L_ReadyFor_ct="You are ready for a circus turma fight.";
		var L_Redirect_Q="Do you want to be redirected there?";
		//Settings
		var L_GCASettings='Paramètres de Gladiatus Crazy Add On';
		var L_HeaderSettings='Paramètres du haut de page';
		var L_DisplayLinkButtons='Afficher les raccourcis';
		var L_DisplayAuctionStatus='Afficher le statut des enchères gladiateurs';
		var L_DisplayMerchantStatus='Afficher le statut des enchères mercenaires';
		var L_DisplayOnlinePlayersButton='Afficher le bouton "Joueurs en ligne"';
		var L_DisplayLinkBox='Afficher la boite à lien sur la droite de la page';
		var L_TimersSettings='Paramètres des chronos';
		var L_DisplayLastBeingAttacked='Afficher le temps passé depuis la dernière attaque reçue en Arène';
		var L_DisplayLastBeingAttacked2='Afficher le temps passé depuis la dernière attaque reçue en Circus Turma';
		var L_AuctionSettings='Paramètres des enchères';
		var L_FillAuctionPrices='Remplissage automatique des prix';
		var L_ChangeItemsBgColor='Modifier le fond des objets (basé sur leur qualité/couleur)';
		var L_AuctionMoreItemsLavels='Plus de choix de niveau';
		var L_DisplayItemNumAndBids='Afficher le nombre d\'objets et le nombre d\'enchérissement';
		var L_DisplayItemList='Afficher la liste d\'objet aux enchères et aux marchés';
		var L_ExpandAuctionTable3='Étendre l\'affichage des objets (3 objets par ligne)';
		var L_SimulatorSettings='Paramètres du simulateurs';
		var L_enSimulator='Lancer de simulateur sur chaque profil de joueurs';
		var L_setFightNum='Nombre de combats simulés';
		var L_maximum='maximum';
		var L_guildSettings='Paramètres de guilde et du marché';
		var L_guildStoreInfo='Afficher la boite d\information à l\'entrepôt de guilde';
		var L_moreGuildStats='Afficher plus de statistiques au hall de guerre';
		var L_monsterSimulator='Afficher le simulateur au bâtiment d\'entrainement';
		var L_gmailChanges='Modifier l\'affichage des mails de guilde';
		var L_ratioOpt='Afficher le ratio (nourriture et prix) pour chaque objet du marché';
		var L_enPriceRatio='Afficher le ratio (Ce n\'est qu\'un indicateur global, pas nécessairement fiable)';
		var L_alertSettings='Paramètres des alertes';
		var L_immedBuy='M\'alerter lorsque je fais un achat immédiat aux enchères';
		var L_reduceTimeEx='M\'alerter lorsque je veux raccourcir une expédition';
		var L_questOpt='M\'informer si une nouvelle mission est disponible ou afficher le temps restant';
		var L_forumMessageOpt='M\'informer si j\'ai un nouveau message sur le forum (avec un [ ! ] à côté du lien forum)';
		var L_weaponAlertOpt='M\'infomer si je ne porte pas d\'arme (avec un [ ! ] à côté de la vue générale)';
		var L_otherSettings='Autres paramètres';
		var L_msgchangesOpt='Autoriser les modifications des messages';
		var L_enBBCODE='Autoriser le BBCODE dans les messages';
		var L_enChat='Autoriser le Chat (Guilde, pays, mondial)';
		var L_enRememberTabs='Se rappeler des onglets d\inventaire et des marchands';
		var L_enImages='Autoriser les images personnalisées des joueurs et des guildes';
		var L_disPackageCounters='Afficher les compteurs pour paquets';
		var L_disID='Afficher l\'ID de chaque joueur sous ses stats';
		var L_disHeal='Afficher la valeur de soin de chaque joueur sous ses stats';
		var L_disTrainingChages='Afficher les stats de base et la modification du maximum lorsqu\'on s\'entraine';
		var L_enHighlight='Mettre en valeur les objets que vous pouvez acheter aux marchands';
		var L_enStyleFixes='Appliquer les correctifs de style';
		var L_speedSettings='Paramètres rapides';
		var L_stopPulling='Arrêter la récupération d\'informations au chargement de la page (pour les connexions lentes)';
		var L_willStop='Cette option va<font color="red"><b> arrêter</b></font>';
		var L_customCursor='Choisissez un curseur personnalisé';
		var L_Save='Sauvegarder';
		var L_AboutUs='A propos de nous';
		var L_Settings='Paramètres';
		var L_donateTitle='Faire un don à Gladiatus Crazy Add-On';
		var L_donateText='Remerciez nous and aidez nous par un don sur nos comptes PayPal. Par vos dons sur notre compte nous pourrons continuer à travailler sur cette extension, ce qui signifie de nouvelles mises à jour, de nouvelles fonctionnalités et moins de bugs ! Cliquez sur le bouton pour nous soutenir.';
		var L_description='Gladiatus Crazy Add On est une extension qui vous aide à jouer à Gladiatus à travers de toutes les fonctionnalités qu\'il vous propose. Il utilise au mieux les informations que le serveur de jeu délivre à votre navigateur. Amusez-vous avec et profitez de vos combats !';
		var L_aboutTitle='A propos de Gladiatus Crazy Add On';
		var L_descriptionTitle='Description';
		var L_Programmers='Developpeurs';
		var L_Translators='Traducteur';
		var L_Hostpage='Page d\'accueil';
		var L_ContactUs='Contactez-nous';
		var L_Contact1='par e-mail à Apo59m@gmail.com ou GreatApo@gmail.com';
		var L_Contact2='par message à nos joueurs sur les serveurs grecs (GreatApo sur le s1 and DarkThanos sur le s2) ou français (djor sur le s5)';
		var L_Contact3='ou sur les 3 topics ouverts sur les forums <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">grecs</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">français</a> et <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">américain</a>';
		var L_thanksTo='Remerciments à';
		var L_MonsterHunters='Chassurus des stats et noms des monstres';
		var L_ItemHunters='Chasseurs d\'objets';
		var L_HideGoldInAuction='Mettre en valeur si l\'objet peut être vendu aux marchands au prix de l\'enchère';
		var L_guildSafeChanges='Autoriser les modifications sur la page des dons de guilde';
		var L_guildMedicChanges='Afficher plus d\'information à la Villa Medici';
		var L_foodBackColor= 'Mettre un fond rouge pour les consommables qui restaurent plus de points de vie que nécessaire (dans la vue générale)';
		var L_packageAlertOpt='M\'informer si mes paquets vont expirer (12 heures à l\'avance environ)';
		var L_bugSettings='Bug Settings';
		var L_showBugReports='Show bug reports';
		var L_autoReportBugs='Automatic report bugs to server';
		var L_showNewMessages='Show new messages';
		var L_MorePriceInfoInAuction='Show more price info';
		var L_CheckAffordInAuction='Show if the item can be bought (with &#10003; / &#10007;)';
		var L_allFilterAlert='Display a confirmation box at auction search when "Type of Object" is "All"';
		var L_BetterLife='Better life view';
		var L_fightReminder='Fight reminder';
		//v2.6.0
		var L_sentQuickMessageBox='Send a quick guild message';
		var L_send='Send';
		var L_merchants='Merchants';
		var L_QuestsInfo='Quests Info';
		var L_Takenquests='Taken quests';
		var L_Completedquests='Completed quests';
		var L_Failedquests='Failed quests';
		var L_InactiveQuests='Inactive Quests';
		var L_Workquests='Work quests';
		var L_Itemsquests='Items quests';
		var L_Expeditionquests='Expedition quests';
		var L_Dungeonquests='Dungeon quests';
		var L_Combatquests='Combat quests';
		var L_Arenaquests='Arena quests';
		var L_Turmaquests='Turma quests';
		var L_DisplayQuickMessageBox='Display quick guild message box';
		var L_DisplayDealerTimer='Display the merchants timer (goods renew)';
		var L_titleGenerate='Generate Signature Image';
		var L_clickToGenerate='Click the "Generate" button to generate an image with your stats!';
		var L_generate='Generate';
		var L_saveOnline='Save online';
		var L_uploadingImage='Uploading image to server';
		var L_searchUrl='Searching for url';
		var L_imageUrl='Image url';
		var L_imageNotFound='Image not found!';
		var L_calculateGuildUpgradeTitle='Calculate the gold per player base to the level';
		var L_Include='Include';
		var L_FixedGold='Fixed Gold';
		var L_GoldPerPlayer='Gold Per Player';
		var L_TargetGold='Target gold';
		var L_GoldInBank='Gold in bank';
		var L_notCalculated='not calculated';
		var L_Difference='Difference';
		var L_Attacks='Attacks';
		var L_Defences='Defences';
		var L_Friendly='Friendly';
		var L_GoldLimit='Gold Limit';
		//v2.6.1
		var L_guildLife='Guild Life';
		var L_addAll='+ Tous';
		var L_donateAll='Donate All';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Done!';
		var L_ManageMercenaries='Manage Mercenaries';
		var L_name='Name';
		var L_protect='Protect';
		var L_leave='Leave';
		var L_selected='Selected';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'bg':
		//Shurtcut Buttons
		var L_guildMailTitle='Напишете съобщение до гилдията';
		var L_guildMedicTitle='Към медецинския център';
		var L_guildMarketTitle='Към пазара на гилдията';
		var L_guildStorageTitle='Към склада';
		var L_staticsTitle='Моята статистика';
		var L_guildSafeTitle='Към банката на гилдията';
		var L_guildWarTitle='Към залата на военния учител';
		var L_guildJailTitle='Към Негодиум Х';
		var L_guildLibraryTitle='Към библиотеката';
		//alert/message
		var L_sure='Сигурен ли сте ?';
		var L_weaponAlert='Внимание <font color="red">не</font> носите оръжие<font color="red">!</font>';
		var L_newMail='Имате <font color="yellow">ново</font> съобщение във форума<font color="yellow">!</font>';
		var L_Full='Пълен';
		var L_New='Нов';
		var L_newsAlert='Има <font color="yellow">ново</font> съобщение в GCA News<font color="yellow">!</font>';
		var L_PackagesWillExpire='Пакетите скоро изтичат';
		var L_hours='часове';
		//custom player/guild image
		var L_changePlayerImage='Смяна на аватара на играча';
		var L_Overfloated='Overfloated';
		var L_plImageWillBeLost='Player\'s image will be lost and will not be saved';
		var L_plDecriptionWillBeCut='Player\'s description will be cut to fit';
		var L_defImages='Покажи аватари';
		var L_imgMadeFrom='Аватарите са създадени от';
		var L_changeGuildImage='Промени аватара на гилдията';
		var L_gImageWillBeLost='Guild\'s image will be lost and will not be saved';
		var L_gDescrtipionWillBeCut='Guild\'s description will be cut to fit';
		//Training
		var L_spent='Изхарчено';
		var L_SimOfTraining = 'Симулатор на тренировките';
		var L_Stat = 'Статистика';
		var L_From = 'От';
		var L_To = 'До';
		var L_Cost = 'Струва';
		var L_TrainingCampLevel = 'Ниво на тренировъчната зала';
		var L_Reduction ='Отстъпка:';
		var L_TotalCost = 'Общо:';
		var L_Calculate = 'Изчисли';
		var L_TotalCostTitle = 'Моята статистика';
		var L_CalculateTitle = 'Изчисти всичко';
		//Simulators
		var L_Simulator='Симулатор';
		var L_arena='АРЕНА';
		var L_Battles='Битки';
		var L_Won='Победи';
		var L_Lost='Загуби';
		var L_Draws='Равенства';
		var L_Damage='Щета';
		var L_myAvDamage='Средна щета';
		var L_hisAvDamage='Средна щета на опонента';
		var L_Life='Жизнени точки';
		var L_myRemLife='Оставащ живот';
		var L_hisRemLife='Оставащ живот на противника';
		var L_trainingSim='Симулатор на тренировките';
		var L_playerA='Играч А';
		var L_playerB='Играч В';
		var L_selectMethod='Изберете метод';
		var L_selectEnemy='Изберете опонент';
		var L_byName='Име на играча';
		var L_byID='ID на играча';
		var L_go='Давай!';
		var L_winnigChance='Шанс за победа';
		var L_PlayerAAvDamage='Средна щета на играч А';
		var L_PlayerBAvDamage='Средна щета на играч В';
		var L_Results='Резултат';
		var L_ClearAll='Изчисти всичко';
		var L_playerNotFound='Играча не е намерен';
		var L_searchData='Зареждане на информацията...';
		var L_noStats='Няма такъв играч!';
		var L_thisIsLocation='This is a location';
		//Guild's storage info
		var L_StorageInfo='Информация за склада';
		var L_itemNum='Брой предмети';
		var L_TotalValue='Обща стойност';
		var L_currentLife='Сегашни точки на живот';
		var L_lostLife='Изгубени точки на живот';
		var L_healLife='Точки живот които дава лечителя';
		var L_afterLife='Живот след лечението';
		var L_findGold='Търсене на злато';
		//Auction
		var L_bidNum='Брой на залозите';
		var L_Items='Предмети';
		var L_selectItem='Изберете предмет';
		var L_Type='Тип';
		var L_selectType='Изберете ти';
		var L_Clear='Изчисти';
		var L_veryShort='Много къс';
		var L_anunGuild='Предупреди гилдията';
		var L_MessageWasSent='Съобщението е изпратено!';
		var L_minDamage='Минимална макс-щета';
		var L_weaponsFound='Намерени оръжия';
		var L_improvementsFound='Намерени подобрения';
		var L_itemsFound='Намерени предмети';
		var L_select='Залог';
		var L_hideGoldHere='Може да скриете златото си тук';
		var L_priceValue='Цена = Стойност';
		//Online Players
		var L_OnlinePlayers='Герои на линия';
		var L_guildPlayers='Онлайн играчи от гилдията';
		var L_familyPlayers='Онлайн играчи от вашето семейство';
		var L_noOnlinePlayer='Няма играчи на линия';
		var L_sentMessage='Изпратете съобщение';
		//Packages
		var L_gold='Злато';
		var L_Packages='Пакети';
		var L_invItems='Предмети в инвентара';
		var L_packedValue='Стойност на пакетите';
		var L_invValue='Стойност на предметите в инвентара';
		var L_total='Общо';
		var L_PackedGold='Злато в пакетите';
		var L_totalGold='Общо заграбено злато';
		var L_totalItemValue='Обща стойност на предметите';
		//Chat
		var L_Username='Име';
		var L_Country='Държава';
		var L_GuildChat='Чат в гилдията';
		var L_CountryChat='Чат в България';
		var L_GlobalChat='Световен чат';
		//Other
		var L_checkAll='Избери всички';
		var L_ID='ID на играча';
		var L_ratioTitle='Храна Ratio | Цена Ratio';
		var L_noGuildText='Вие нямате гилдия.<br>If you have one please go <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >here</a> in order your stats be updated';
		var L_ReadyFor_expedition="Готови сте за нова експедиция.";
		var L_ReadyFor_dungeon="Готови сте за нова битка в подземията.";
		var L_ReadyFor_arena="Готови сте за нова битка на арената.";
		var L_ReadyFor_ct="Готови сте за нова битка на Circus Turma.";
		var L_Redirect_Q="Искате ли да бъдете пренасочен?";	
		//Settings
		var L_GCASettings='Gladiatus Crazy Add On - Настройки';
		var L_HeaderSettings='Настройки на бутоните в хедъра';
		var L_DisplayLife='Показване на точките на живот в хедъра';
		var L_DisplayLifePercent='Разширено показване на точки на живот';
		var L_DisplayLinkButtons='Показване на бързи бутони в хедъра';
		var L_DisplayAuctionStatus='Показване на времето на аукциона';
		var L_DisplayMerchantStatus='Показване на времето на аукциона на наемника';
		var L_DisplayOnlinePlayersButton='Показване на "Онлайн играчи" бутон в хедъра';
		var L_DisplayLinkBox='Показване на меню с бързи бутони в дясно на страницата';
		var L_TimersSettings='Настройки на таймерите';
		var L_DisplayLastBeingAttacked='Показване на таймер "Кога за последно са Ви атакували на арената" ';
		var L_DisplayLastBeingAttacked2='Показване на таймер "Кога за последно са Ви атакували на Circus Turma" ';
		var L_AuctionSettings='Настройки на аукциона';
		var L_FillAuctionPrices='Автоматично попълване на цените в аукциона';
		var L_ChangeItemsBgColor='Промяна на фона на предметите(в зависимост от качеството им)';
		var L_AuctionMoreItemsLavels='Показване на повече нива в търсачката';
		var L_DisplayItemNumAndBids='Показване на броя на предметите и броя на залозите';
		var L_DisplayItemList='Показване на списък с предмети в търсачката';
		var L_ExpandAuctionTable3='Разширяване на аукциона(3 предмета/ред)';
		var L_SimulatorSettings='Настройки на симулатора';
		var L_enSimulator='Активиране на симулатора на битки';
		var L_setFightNum='Брой на симулациите';
		var L_maximum='максимален';
		var L_guildSettings='Настройки на гилдията и пазара';
		var L_guildStoreInfo='Показване на информация за склада на гилдията';
		var L_moreGuildStats='Показване на разширена статистика в залата на военния учител';
		var L_monsterSimulator='Показване на "Симулатора за тренировки" в тренировъчната зала';
		var L_gmailChanges='Разрешаване на промените в пощата на гилдията';
		var L_ratioOpt='Показване "Ratio" за храните(живот/цена) на всеки предмети на пазара';
		var L_enPriceRatio='Разрешаване на живот/цена "Ratio" стойноста за храните (не работи много точно)';
		var L_alertSettings='Настройки на предупрежденията';
		var L_immedBuy='Извеждане на предупредителен прозорец, когато изкупувате предмет от аукциона';
		var L_reduceTimeEx='Извеждане на предупредителен прозорец, когато плащате с рубини за нова експедиция';
		var L_questOpt='Информирай ме ако мога да вземам нов куест или показвай оставащото време';
		var L_forumMessageOpt='Информирай ме ако имам ново съобщение във форума (с [ ! ] до бутона Форум)';
		var L_weaponAlertOpt='Информирай ме ако не нося оръжие (с [ ! ] до бутона Преглед)';
		var L_otherSettings='Други настройки';
		var L_msgchangesOpt='Разреши оформление на съобщенията';
		var L_enBBCODE='Разрешаване на BBcode в съобщенията';
		var L_enChat='Разрешаване на бутона Чат (Гилдиен, България и Глобален)';
		var L_enRememberTabs='Запомняне на табовете на инвентара и магазините';
		var L_enImages='Разрешаване на собствени и гилдийни аватари';
		var L_disPackageCounters='Показване на брояч на пакетите';
		var L_disID='Показване на ID-то на всеки играч под неговата статистика';
		var L_disHeal='Показване на Лечението на всеки играч под неговата статистика';
		var L_disTrainingChages='Показване на началната и максималната промяна в статистиката когато тренирате';
		var L_enHighlight='Маркирване на предметите които не могат да се закупят от магазините';
		var L_enStyleFixes='Фиксиране на стилът';
		var L_speedSettings='Настройки за подобрение на скоростта';
		var L_stopPulling='Не показвай информация докато страницата се зарежда (настройка за по бавни интернет връзки)';
		var L_willStop='Тази настройка <font color="red"><b>ИЗКЛЮЧВА</b></font>';
		var L_customCursor='Изберете си курсор на мишката';
		var L_Save='Запази';
		var L_AboutUs='За нас';
		var L_Settings='Настройки';
		var L_donateTitle='Направете дарение за Gladiatus Crazy Add On';
		var L_donateText='Благодарете ни и ни помогнете чрез дарение в нашия PayPal профил. Чрез дарението си Вие ни помагате да продължим работата си по този Add on което означава повече ъпдейти, нови характеристики и без бъгове! Натиснете бутона "Donate NOW" за да ни помогнете ';
		var L_description='Gladiatus Crazy Add On е безплатна добавка, която ви помага за Gladiatus чрез многото си функции, които тя ви дава. То реално използва по-добре информацията, която сървъра на играта изпраща до вашия браузър. Забавлявайте се с него и се наслаждавайте на вашите битки!';
		var L_aboutTitle='Относно Gladiatus Crazy Add On';
		var L_descriptionTitle='Описание';
		var L_Programmers='Програмисти';
		var L_Translators='Преводачи';
		var L_Hostpage='Официален сайт';
		var L_ContactUs='За контакти с нас';
		var L_Contact1='чрез e-mail на <b>Apo59m@gmail.com</b> или <b>GreatApo@gmail.com</b>';
		var L_Contact2='чрез съобщение към нашите играчи в Гръцките сървъри (GreatApo за s1 и DarkThanos за s2) и Френският сървър (djor за s?)';
		var L_Contact3='или чрез една от 3-те теми в <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Greek</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">French</a> и <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a> форум';
		var L_thanksTo='Специални благодарности на';
		var L_MonsterHunters='Ловци на чудовища (статистика/имена)';
		var L_ItemHunters='Ловци на предмети';
		var L_HideGoldInAuction='Оцвети в жълто цената на предмета,ако мога да го продам при търговеца за същото злато,което съм заложил за него';
		var L_HideGoldInAuction='Оцвети в жълто цената на предмета,ако мога да го продам при търговеца за същото злато,което съм заложил за него';
		var L_guildSafeChanges='Разрешаване на безопасни промени за гилдията';
		var L_guildMedicChanges='Показване на повече информация в медецинския център';
		var L_foodBackColor='Оцвети в червено храните които ви дават повече живот отколкото имате нужда в момента.';
		var L_packageAlertOpt='Информирай ме ако пакетите ми изтичат (12 часа по-рано)';
		var L_bugSettings='Настройка на грешките';
		var L_showBugReports='Показвай репрот за бъгове';
		var L_autoReportBugs='Автоматично докладване за бъгове';
		var L_showNewMessages='Показване на нови съобщения';
		var L_MorePriceInfoInAuction='Показване на повече информация за цената';
		var L_CheckAffordInAuction='Показване ако предмета може да бъде купен (with &#10003; / &#10007;)';
		var L_allFilterAlert='Извеждане на предупредителен прозорец при търсене в аукциона когато изберете за "Вид на предмета" - "Всички"';
		var L_BetterLife='Подобрен изглед на живота';
		var L_fightReminder='Напомняне за битки';
		//v2.6.0
		var L_sentQuickMessageBox='Изпращане на бързо съобщение до гилдията';
		var L_send='Изпрати';
		var L_merchants='Търговец';
		var L_QuestsInfo='Информация за куестове';
		var L_Takenquests='Приети куестове';
		var L_Completedquests='Изпълнени куестове';
		var L_Failedquests='Провалени куестове';
		var L_InactiveQuests='Оставащи куестове';
		var L_Workquests='Куестове за работа';
		var L_Itemsquests='Куестове за предмети';
		var L_Expeditionquests='Куестове за експедиции';
		var L_Dungeonquests='Куестове за подземия';
		var L_Combatquests='Куестове за битки';
		var L_Arenaquests='Куестове за арена';
		var L_Turmaquests='Куестове за CircusTurma';
		var L_DisplayQuickMessageBox='Показване на бързо поле за писане до гилдията';
		var L_DisplayDealerTimer='Показване на "Оставащо време до пристигането на нови стоки" при търговеца';
		var L_titleGenerate='Генериране на подпис';
		var L_clickToGenerate='Натисни бутона "Generate" за да генерираш изображение с вашата статистика!';
		var L_generate='Generate';
		var L_saveOnline='Save online';
		var L_uploadingImage='Uploading image to server';
		var L_searchUrl='Searching for url';
		var L_imageUrl='Image url';
		var L_imageNotFound='Снимката не е намерена!';
		var L_calculateGuildUpgradeTitle='Изчисляване на златото на всеки играч при дарение'; 
		var L_Include='Включете';
		var L_FixedGold='Фиксирано злато';
		var L_GoldPerPlayer='Злато за всеки играч';
		var L_TargetGold='Нужно злато';
		var L_GoldInBank='Злато в банката';
		var L_notCalculated='не се смята';
		var L_Difference='Разлика';
		var L_Attacks='Атаки';
		var L_Defences='Защити';
		var L_Friendly='Приятелски';
		var L_GoldLimit='Лимит на злато';
		//v2.6.1
		var L_guildLife='Гилдия - Жизнени точки';
		var L_addAll='+ Всички';
		var L_donateAll='Дари Всичко';
		var L_visiteYourGuildsMemberPage='За да изпратите съобщение до гилдията трябва да запазите своето ID.\nИскате ли да го направите сега?';
		var L_Done='Готово!';
		var L_ManageMercenaries='Управлявайте наемниците';
		var L_name='Име';
		var L_protect='Защита';
		var L_leave='Напусни';
		var L_selected='Избрано';
		var L_itemsAreNotSaved='Пояснението за предметите не се запазва за този герой.\nВие трябва първо да посетите вашият профил.';
		var L_mercenariesAreNotSaved='Пояснението за наемниците не се запазва.\nВие трябва първо да посетите вашият подземник.';
		var L_changeAuctionCompareItems='Изберете герой за да сравните поясненията';
		var L_notWearingAnItem='Не носи предмет';
		var L_notWearingAMercenary='Не носи неамник';
		var L_setNumOfGuild='Брой гилдии';
		//2.8.0
		var L_playersGold='Моето злато';
		var L_time='време'
		var L_expedition='Експедиции';
		var L_turma='Turma';
		var L_dungeon='Подземие';
		var L_titleSettings='Настройки на заглавието на страницата';
		var L_enableTitle='Разрешаване на потребителско заглавие на страницата';
		var L_showLogoTitle='Покажи "Gladiatus" в заглавието';
		var L_showServerTitle='Покажи сървъра и страната';
		var L_customTitleType='Избери какво още заглавието да показва'
		var L_enableTitlePoints='Вмъкване на точки за експедиция/подземия след времето';
		var L_cancelAll='Откажи Всичко';
		var L_numberOfMyItems='Брой на моите предмети';
		var L_seeThisReport='Виж този доклад';
		var L_TopBar='Показване на лента в горния край на страницата когато се слиза на долу.';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'de':
		var L_guildMailTitle='Gildenmail schreiben';
		var L_guildMedicTitle='Zum Notarzt kriechen';
		var L_guildMarketTitle='Gildenmarkt';
		var L_guildStorageTitle='Lagerhaus';
		var L_staticsTitle='Meine Werte';
		var L_guildSafeTitle='Bank';
		var L_guildWarTitle='Kriegsmeisterhalle';
		var L_guildJailTitle='Negotium';
		var L_guildLibraryTitle='Bibliothek';

		var L_sure='Bist du sicher ?';
		var L_weaponAlert='Du trδgst <font color="red">keine!</font> Waffe';
		var L_newMail='Du hast eine <font color="yellow">new</font> neue Nachricht<font color="yellow">!</font>';
		var L_Full='Voll';
		var L_New='Neu';
		var L_newsAlert='Es gibt eine <font color="yellow">new</font> neue Nachricht von GCA<font color="yellow">!</font>';
		var L_PackagesWillExpire='<font color="red">not</font>Deine Pakete laufen aus<font color="red">!</font>';
		var L_hours='Stunde';

		var L_changePlayerImage='Δndere Dein Profilfoto';
		var L_Overfloated='Das Foto ist zu groί';
		var L_plImageWillBeLost='Dein Profilfoto geht verloren und wird nicht gespeichert';
		var L_plDecriptionWillBeCut='Deine Profilbeschreibung wird auf die richtige Lδnge zugeschnitten';
		var L_defImages='Zeige Deine Fotos';
		var L_imgMadeFrom='Deine Fotos sind von';
		var L_changeGuildImage='Gildenwappen wechseln';
		var L_gImageWillBeLost='Das Gildenwappen geht verloren und wird nicht gespeichert';
		var L_gDescrtipionWillBeCut='Gildenbeschreibung wird angepasst, damit sie passt';

		var L_spent='Ausgeben';
		var L_SimOfTraining = 'Trainingssimulator';
		var L_Stat = 'Statistik';
		var L_From = 'Von';
		var L_To = 'Zu';
		var L_Cost = 'Kostet';
		var L_TrainingCampLevel = 'Stufe des Trainingsgelδnde';
		var L_Reduction ='Reduzieren:';
		var L_TotalCost = 'Totale Kosten:';
		var L_Calculate = 'Berechne';
		var L_TotalCostTitle = 'Meine Statistik auf der linken Seite anzeigen';
		var L_CalculateTitle = 'Berechne alle Kosten der Statistik';

		var L_Simulator='Simulator';
		var L_arena='ARENA';
		var L_Battles='Kδmpfe';
		var L_Won='Gewonnen';
		var L_Lost='Verloren';
		var L_Draws='Unentschieden';
		var L_Damage='Schaden verteilt';
		var L_myAvDamage='Dein durchschnittlicher Schaden';
		var L_hisAvDamage='Der durchschnittlicher Schaden deines Gegners';
		var L_Life='Lebenspunkte';
		var L_myRemLife='Verbleibende Lebenspunkte';
		var L_hisRemLife='Verbleibende Lebenspunkte deines Gegners';
		var L_trainingSim='Trainingssimulator';
		var L_playerA='Spieler A';
		var L_playerB='Spieler B';
		var L_selectMethod='Wδhle Methode';
		var L_selectEnemy='Wδhle Gegner';
		var L_byName='Spieler beim Namen';
		var L_byID='Spieler όber ID';
		var L_go='Los!';
		var L_winnigChance='Gewinnchance';
		var L_PlayerAAvDamage='Durchschnittlicher Schaden von Spieler A';
		var L_PlayerBAvDamage='Durchschnittlicher Schaden von Spieler B';
		var L_Results='Ergebnisse';
		var L_ClearAll='Alles Lφschen';
		var L_playerNotFound='Spieler kann nicht gefunden werden';
		var L_searchData='Durchsuche die Datenbank';
		var L_noStats='Keine Statistik vorhanden';
		var L_thisIsLocation='Das ist ein Standort';

		var L_StorageInfo='Lagerhaus Information';
		var L_itemNum='Anzahl von Items';
		var L_TotalValue='Totaler Wert';
		var L_currentLife='Momentane Lebenspunkte';
		var L_lostLife='Verlorene Lebenspunkte';
		var L_healLife='Zu heilende Lebenspunkte';
		var L_afterLife='Leben nach Heilung';
		var L_findGold='Find gold';

		var L_bidNum='Anzahl von Geboten';
		var L_Items='Items';
		var L_selectItem='Wδhle ein Item';
		var L_Type='Type';
		var L_selectType='Wδhle einen Typ';
		var L_Clear='Lφsche die Eingabe';
		var L_veryShort='Sehr Kurz';
		var L_anunGuild='Der Gilde ankόndigen';
		var L_MessageWasSent='Nachricht wurde gesendet!';
		var L_minDamage='Minimum Schaden';
		var L_weaponsFound='Waffen gefunden';
		var L_improvementsFound='Improvements found';
		var L_itemsFound='Gegenstδnde gefunden';
		var L_select='Wδhle';
		var L_hideGoldHere='Du kannst dein Gold hier saven';
		var L_priceValue='Preis = Wert';

		var L_OnlinePlayers='Spieler die Online sind';
		var L_guildPlayers='Gidenmitglieder die Online sind';
		var L_familyPlayers='Familiamitglieder die Online sind';
		var L_noOnlinePlayer='Keine Spieler online';
		var L_sentMessage='Nachricht wurde gesendet';

		var L_gold='Gold';
		var L_Packages='Pakete';
		var L_invItems='Items im Inventar';
		var L_packedValue='Items in Paketen\' Wert';
		var L_invValue='Items im Inventar\' Wert';
		var L_total='Total';
		var L_PackedGold='Gold in Paketen';
		var L_totalGold='Total Gewonnenes Gold';
		var L_totalItemValue='Wert aller Items';

		var L_Username='Spieler Name';
		var L_Country='Land';
		var L_GuildChat='Gilden Chat';
		var L_CountryChat='Nationaler Chat';
		var L_GlobalChat='Globaler Chat';

		var L_checkAll='Check Alle';
		var L_ID='Spieler ID';
		var L_ratioTitle='Lebensmittel Ratio | Preis Ratio';
		var L_noGuildText='Du bist in keiner Gilde.<br>Falls du doch in einer Gilde bist <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >Hier</a> kannst du deine Statistik updaten';
		var L_ReadyFor_expedition="Du bist fόr eine Expedition bereit.";
		var L_ReadyFor_dungeon="Du bist fόr einen Dungeon Kampf bereit.";
		var L_ReadyFor_arena="Du bist fόr einen Arena Kampf bereit.";
		var L_ReadyFor_ct="Du bist fόr einen Circus Turma Kampf bereit.";
		var L_Redirect_Q="Do you want to be redirected there?";
		
		var L_GCASettings='Gladiatus Crazy Add Einstellungen';
		var L_HeaderSettings='άberschrift Einstellungen';
		var L_DisplayLinkButtons='Zeige die Button in der άberschriftleiste';
		var L_DisplayAuctionStatus='Zeige den Auktionshaus-Sstatus in der άberschriftleiste';
		var L_DisplayMerchantStatus='Zeige den Sφldner-Auktionshaus-Status in der άberschriftleiste';
		var L_DisplayOnlinePlayersButton='Zeige den Online Button in der άberschriftleiste';
		var L_DisplayLinkBox='Zeige die Linkbox auf der rechte Seite';
		var L_TimersSettings='Timer Einstellung';
		var L_DisplayLastBeingAttacked='Zeige an, wann Du das letztemal in der Arena angegriffen wurdest';
		var L_DisplayLastBeingAttacked2='Zeige an, wann Du das letztemal in der Circus Turma angegriffen wurdest';
		var L_AuctionSettings='Auktionshaus Einstellungen';
		var L_FillAuctionPrices='Gebe die Preise der Items im Auktionshaus automatisch ein';
		var L_ChangeItemsBgColor='Wechsel die Hintergrund Farbe der Items\' basierend auf der Qualitδtstufe der Items';
		var L_AuctionMoreItemsLavels='Zeige mehrere verschiedene Stufen in der Itemauswahl';
		var L_DisplayItemNumAndBids='Zeige die Anzahl von Items und die Anzahl von Geboten in der Auktion';
		var L_DisplayItemList='Zeige eine Liste von Items in der Auktion und vom Markt = Suchleiste';
		var L_ExpandAuctionTable3='Vergrφssere den Auktionstisch (3 Items in jeder Reihe)';
		var L_SimulatorSettings='Simulator Einstellungen';
		var L_enSimulator='Ermφglische den PvP simulator fόr jedes Spielerprofil';
		var L_setFightNum='Lege die Anzahl von simulierten Kδmpfen fest';
		var L_maximum='Maximum';
		var L_guildSettings='Gilden & Markt Einstellungen';
		var L_guildStoreInfo='Zeige die Infobox im Gildenlagerhaus';
		var L_moreGuildStats='Zeige mehr Informationen von den gegnerischen Gilden in der Kriegsmeisterhalle.';
		var L_monsterSimulator='Zeige den Trainingssimulator im Gildentrainingsgelδnde';
		var L_gmailChanges='Ermφgliche Gildenmail Δnderungen';
		var L_ratioOpt='Zeige das Verhδltniss im Wert (Lebenspunkte zu Preis) bei jedem Item auf dem Markt';
		var L_enPriceRatio='Ermφglich das Preis Wert Verhδltniss (nicht sehr genau)';
		var L_alertSettings='Alarm Einstellungen';
		var L_immedBuy='Zeige eine Bestδtigungsbox wenn Du ein Item per Sofortkauf im Auktionshaus kaufst';
		var L_reduceTimeEx='Zeige eine Bestδtigungsbox wenn Du eine Expedition gegen Rubine machen willst';
		var L_questOpt='Informiere mich, wenn ich eine neue Aufgabe annehmen kann oder wenn bei einer Aufgabe das Zeitlimit ablδuft';
		var L_forumMessageOpt='Informiere mich, wenn ich eine Nachricht im Forum bekommen habe (mit einem [ ! ] neben dem Forum link)';
		var L_weaponAlertOpt='Informiere mich, wenn ich keine Waffe trage (mit einem [ ! ] neben der άbersichtsleiste)';
		var L_otherSettings='Andere Einstellungen';
		var L_msgchangesOpt='Ermφgliche Nachrichten Δnderungen';
		var L_enBBCODE='ErmΦgliche BBCODE in Nachrichten';
		var L_enChat='Ermφgliche Chat (Gilden, National, International)';
		var L_enRememberTabs='Erinnere deine  Inventar und Sφlder Tabs';
		var L_enImages='Ermφgliche das benutzerdefinierte Spieler/Gilden Bilder System';
		var L_disPackageCounters='Zeige den Paket Zδhler';
		var L_disID='Zeige die ID jedes Spielers in seiner Statistik';
		var L_disHeal='Zeige die Heilungsstatistik in den Spielerstatistiken an';
		var L_disTrainingChages='Zeige die Verδnderungen in den Basen und im Maximum die sich durch das Training δndern wόrden';
		var L_enHighlight='Hebe die Sφldner hervor die du beim Sφldnerhδndler kaufen kannst';
		var L_enStyleFixes='Wende Stilδnderungen an';
		var L_speedSettings='Geschwindigkeitsstufen';
		var L_stopPulling='Lade keine Informationen wenn die Seite geladen wird (Option fuer langsame Verbindungen)';
		var L_willStop='Diese Option wird <font color="red"><b>stoppen</b></font>';
		var L_customCursor='Wδhle benutzerdefinierten Cursor';
		var L_Save='Speichern';
		var L_AboutUs='άber uns';
		var L_Settings='Einstellungen';
		var L_donateTitle='Tue Gutes - Spende fόr das Gladiatus Crazy Add On';
		var L_donateText='Danke uns und hilf uns, indem Du Geld an unseren Paypal-Account spendest. Durch Deine Spende hilfst Du uns, an dem Add on weiterzuarbeiten, dass heisst mehr Updates, neue Mφglichkeiten und keine Bugs! Klicke diesen Button um uns zu unterstόtzen';
		var L_description='Gladiatus Crazy Add On is a free add on that helps you with Gladiatus through the many features it gives. It actually uses better the info that the game server gives to your browser. Have fun with it and enjoy your fights!';
		var L_aboutTitle='άber das Gladiatus Crazy Add On';
		var L_descriptionTitle='Beschreibung';
		var L_Programmers='Programmierer';
		var L_Translators='άbersetzer';
		var L_Hostpage='Hostpage';
		var L_ContactUs='Kontaktiere uns';
		var L_Contact1='indem du eine e-mail an Apo59m@gmail.com oder GreatApo@gmail.com schickst';
		var L_Contact2='Mit einer Nachricht an unsere Spieler auf den Griechischen Servern (GreatApo auf s1 und DarkThanos auf s2) oder auf dem Franzφsichen Server (djor at s?)';
		var L_Contact3=' oder in in den 3 Φffentlichen Thread auf <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Greek</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">French</a> und <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a> Forum';
		var L_thanksTo='Wir bedanken uns bei';
		var L_MonsterHunters='Monster Statistik/Name hunters';
		var L_ItemHunters='Item hunters';
		var L_HideGoldInAuction='Fδrbe/Makiere die Eingabe, wenn ich ein Item zum selben Preis beim Hδndler verkaufen kann';
		var L_HideGoldInAuction='Fδrbe/Makiere die Eingabe, wenn ich ein Item zum selben Preis beim Hδndler verkaufen kann';
		var L_guildSafeChanges='Ermφgliche Gildenδnderung Sicherung';
		var L_guildMedicChanges='Zeig mehr Informationen in der Villa Medici';
		var L_foodBackColor='Zeige einen Roten Hintergrund bei Nahrungsmitteln, die mehr Lebenspunkte geben als benφtigt';
		var L_packageAlertOpt='Informiere mich, wenn meine Pakete auslaufen sollten (12 Stunden zuvor)';
		var L_bugSettings='Bug Settings';
		var L_showBugReports='Show bug reports';
		var L_autoReportBugs='Automatic report bugs to server';
		var L_showNewMessages='Zeige neue Nachrichten';
		var L_MorePriceInfoInAuction='Zeige mehr Preis Informationen';
		var L_CheckAffordInAuction='Zeige ob ein Gegenstand gekauft werden kann (mit &#10003; / &#10007;)';
		var L_allFilterAlert='Display a confirmation box at auction search when "Type of Object" is "All"';
		var L_BetterLife='Bessere Lebenspunkte άbersicht';
		var L_fightReminder='Fight reminder';
		//v2.6.0
		var L_sentQuickMessageBox='Sende eine schnelle Gilden Nachricht';
		var L_send='Senden';
		var L_merchants='Hδndler';
		var L_QuestsInfo='Aufgaben Info';
		var L_Takenquests='Angenommene Aufgaben';
		var L_Completedquests='Abgeschlossene Aufgaben';
		var L_Failedquests='Fehlgeschlagene Aufgaben';
		var L_InactiveQuests='Nicht Abgeschlossene Aufgaben';
		var L_Workquests='Arbeit Aufgaben';
		var L_Itemsquests='Gegenstδnde Aufgaben';
		var L_Expeditionquests='Expeditions Aufgaben';
		var L_Dungeonquests='Dungeon Aufgaben';
		var L_Combatquests='Kampf Aufgaben';
		var L_Arenaquests='Arena Aufgaben';
		var L_Turmaquests='Turma Aufgaben';
		var L_DisplayQuickMessageBox='Display quick guild message box';
		var L_DisplayDealerTimer='Display the merchants timer (goods renew)';
		var L_titleGenerate='Generate Signature Image';
		var L_clickToGenerate='Click the "Generate" button to generate an image with your stats!';
		var L_generate='Generate';
		var L_saveOnline='Save online';
		var L_uploadingImage='Uploading image to server';
		var L_searchUrl='Searching for url';
		var L_imageUrl='Image url';
		var L_imageNotFound='Image not found!';
		var L_calculateGuildUpgradeTitle='Berechne das Gold pro Spieler basierend auf der Stufe';
		var L_Include='Include';
		var L_FixedGold='Fixed Gold';
		var L_GoldPerPlayer='Gold pro Spieler';
		var L_TargetGold='Benφtigtes Gold';
		var L_GoldInBank='Gold in der Bank';
		var L_notCalculated='nicht Berόcksichtigt';
		var L_Difference='Unterschied';
		var L_Attacks='Angreifer';
		var L_Defences='Verteidiger';
		var L_Friendly='Freund';
		var L_GoldLimit='Gold Limit';
		//v2.6.1
		var L_guildLife='Guild Life';
		var L_addAll='+ All';
		var L_donateAll='Alles Spenden';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Erledigt!';
		var L_ManageMercenaries='Sφldner άbersicht';
		var L_name='Name';
		var L_protect='Protect';
		var L_leave='Leave';
		var L_selected='Selected';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'lv':
		var L_guildMailTitle='Rakstīt ģildei vēstuli';
		var L_guildMedicTitle='Iet uz dziednīcu';
		var L_guildMarketTitle='Iet uz ģildes tirgu';
		var L_guildStorageTitle='Iet uz ģildes noliktavu';
		var L_staticsTitle='Mani stati';
		var L_guildSafeTitle='Go to guild\'s bank';
		var L_guildWarTitle='Go to guild\'s war camp';
		var L_guildJailTitle='Go to guild\'s jail';
		var L_guildLibraryTitle='Go to guild\'s library';
		
		var L_sure='Droši zini ?';
		var L_weaponAlert='Tev <font color="red">nav</font> ieroča<font color="red">!</font>';
		var L_newMail='Tev ir pienākusi <font color="yellow">jauna</font> ziņa forumā<font color="yellow">!</font>';
		var L_Full='Pilns';
		var L_New='JAUNS';
		var L_newsAlert='Ir pienākusi <font color="yellow">jauna</font> ziņa GCA Jaunumos<font color="yellow">!</font>';
		var L_PackagesWillExpire='Pakas drīz tiks dzēstas';
		var L_hours='stundas';
		
		var L_changePlayerImage='Mainīt spēlētāja attēlu';
		var L_Overfloated='Links ir par garu';
		var L_plImageWillBeLost='Spēlētāja attēls netiks saglabāts';
		var L_plDecriptionWillBeCut='Spēlētāja apraksts tiks saīsināts, jo tas ir par garu';
		var L_defImages='Rādīt noklusētos attēlus';
		var L_imgMadeFrom='Attēlu autors';
		var L_changeGuildImage='Mainīt ģildes attēlu';
		var L_gImageWillBeLost='Ģildes attēls netiks saglabāts';
		var L_gDescrtipionWillBeCut='Ģildes apraksts tiks saīsināts, jo tas ir par garu';
		
		var L_spent='ir iztērēts treniņiem';
		var L_SimOfTraining = 'Treniņa simulators';
		var L_Stat = 'Statistika';
		var L_From = 'No';
		var L_To = 'Līdz';
		var L_Cost = 'Cena';
		var L_TrainingCampLevel = 'Treniņu laukuma līmenis';
		var L_Reduction ='Samazināšanās:';
		var L_TotalCost = 'Gala cena:';
		var L_Calculate = 'Rēķināt';
		var L_TotalCostTitle = 'Ielikt manus status kreisajā kolonnā';
		var L_CalculateTitle = 'Aprēķināt kopējās izmaksas';
		
		var L_Simulator='Simulators';
		var L_arena='ARĒNA';
		var L_Battles='Cīņas';
		var L_Won='Uzvarētas';
		var L_Lost='Zaudētas';
		var L_Draws='Neizšķirti';
		var L_Damage='Bojājums';
		var L_myAvDamage='Tavs vidējais bojājums';
		var L_hisAvDamage='Pretinieka vidējais bojājums';
		var L_Life='Dzīvība';
		var L_myRemLife='Tava atlikusī dzīvība';
		var L_hisRemLife='Pretinieka atlikusī dzīvība';
		var L_trainingSim='Treniņa simulators';
		var L_playerA='Spēlētājs A';
		var L_playerB='Spēlētājs B';
		var L_selectMethod='Izvēlies pretinieku';
		var L_selectEnemy='Izvēlies pretinieku';
		var L_byName='Spēlētājs pēc vārda';
		var L_byID='Spēlētājs pēc ID';
		var L_go='Simulēt';
		var L_winnigChance='Uzvaras iespēja';
		var L_PlayerAAvDamage='Spēlētāja A vidējais bojājums';
		var L_PlayerBAvDamage='Spēlētāja B vidējais bojājums';
		var L_Results='Rezultāti';
		var L_ClearAll='Nodzēst';
		var L_playerNotFound='Spēlētājs nav atrasts';
		var L_searchData='Meklē...';
		var L_noStats='Nav statu';
		var L_thisIsLocation='Šī ir atrašanās vieta';
		
		var L_StorageInfo='Noliktavas Informācija';
		var L_itemNum='Priekšmetu Skaits';
		var L_TotalValue='Kopējā vērtība';
		var L_currentLife='Pašreizējā dzīvība';
		var L_lostLife='Zaudētā dzīvība';
		var L_healLife='Tiks izdziedēts';
		var L_afterLife='Dzīvība pēc dziedināšanas';
		var L_findGold='Find gold';
		
		var L_bidNum='Solītāju skaits';
		var L_Items='Priekšmeti';
		var L_selectItem='Izvēlies';
		var L_Type='Tips';
		var L_selectType='Izvēlies';
		var L_Clear='Nodzēst';
		var L_veryShort='Ļoti īss';
		var L_anunGuild='Paziņot ģildei';
		var L_MessageWasSent='Ziņa ir nosūtīta!';
		var L_minDamage='Minimālais bojājums';
		var L_weaponsFound='Atrasts';
		var L_improvementsFound='Improvements found';
		var L_itemsFound='Items found';
		var L_select='Izvēlēties';
		var L_hideGoldHere='You can hide your gold here';
		var L_priceValue='Price = Value';
		
		var L_OnlinePlayers='Spēlētāji Online';
		var L_guildPlayers='Ģildes biedri Online';
		var L_familyPlayers='Draugi Online';
		var L_noOnlinePlayer='Neviens nav online';
		var L_sentMessage='Nosūtīt ziņu';
		
		var L_gold='Zelts';
		var L_Packages='Pakas';
		var L_invItems='Inventāru priekšmeti';
		var L_packedValue='Pakoto mantu vērtība';
		var L_invValue='Inventāru mantu vērtība';
		var L_total='Kopā';
		var L_PackedGold='Sapakotais zelts';
		var L_totalGold='Kopējais nopelnītais zelts';
		var L_totalItemValue='Kopējā mantu vērtība';
		
		var L_Username='Lietotājvārds';
		var L_Country='Valsts';
		var L_GuildChat='Ģildes Čats';
		var L_CountryChat='Valsts Čats';
		var L_GlobalChat='Pasaules Čats';
		
		var L_checkAll='Atzīmēt visus';
		var L_ID='Spēlētāja ID';
		var L_ratioTitle='Ēdiena Ratio | Cenas Ratio';
		var L_noGuildText='Tu neesi nevienā ģildē.<br>Ja tu tomēr esi, tad spied <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >šeit</a> lai atjaunotu savus status';
		var L_ReadyFor_expedition="You are ready for an expedition fight.";
		var L_ReadyFor_dungeon="You are ready for a dungeon fight.";
		var L_ReadyFor_arena="You are ready for an arena fight.";
		var L_ReadyFor_ct="You are ready for a circus turma fight.";
		var L_Redirect_Q="Do you want to be redirected there?";
		
		var L_GCASettings='Gladiatus Crazy Add On Iestatījumi';
		var L_HeaderSettings='Galvenie';
		var L_DisplayLinkButtons='Rādīt papildus izvēlnes ikonas lapas augšpusē';
		var L_DisplayAuctionStatus='Rādīt izsoles statusu lapas augšpusē';
		var L_DisplayMerchantStatus='Rādīt arī algotņu izsoles statusu';
		var L_DisplayOnlinePlayersButton='Rādīt "Online Spēlētāji" pogu';
		var L_DisplayLinkBox='Rādīt papildus izvēlni lapas labajā pusē';
		var L_TimersSettings='Taimera iestatījumi';
		var L_DisplayLastBeingAttacked='Rādīt laiku, kas pagājis, kopš tev kāds uzbruka Arēnā';
		var L_DisplayLastBeingAttacked2='Rādīt laiku, kas pagājis, kopš kāds tev uzbruka Turma Arēnā';
		var L_AuctionSettings='Izsoles iestatījumi';
		var L_FillAuctionPrices='Automātiski ierakstīt solīšanas cenu';
		var L_ChangeItemsBgColor='Mainīt mantas fonu (balstoties uz kvalitāti) izsolē';
		var L_AuctionMoreItemsLavels='Vairāk līmeņu izsoles sadaļā "Minimālais līmenis"';
		var L_DisplayItemNumAndBids='Rādīt mantu un solītāju skaitu izsolē';
		var L_DisplayItemList='Rādīt mantu saraksta izvēlni izsolēs un tirgū';
		var L_ExpandAuctionTable3='Palielināt izsoles tabulu (3 mantas rindā)';
		var L_SimulatorSettings='Simulatora iestatījumi';
		var L_enSimulator='Rādīt PvP simulatoru katra spēlētāja profilā';
		var L_setFightNum='Norādi simulēto cīņu skaitu';
		var L_maximum='maksimums';
		var L_guildSettings='Ģildes & Tirgus iestatījumi';
		var L_guildStoreInfo='Rādīt papildus info ģildes noliktavā';
		var L_moreGuildStats='Rādīt papildus info Kara Meistaru Zālē pretinieku ģildēm';
		var L_monsterSimulator='Rādīt treniņu simulatoru ģildes Treniņu Laukumā';
		var L_gmailChanges='Izmantot ģildes pasta uzlabojumus';
		var L_ratioOpt='Rādīt "Ratio" (ēdiens/cena) vērtību katrai mantai tirgū';
		var L_enPriceRatio='Rādīt cenas "Ratio" vērtību (nav diez ko precīzi)';
		var L_alertSettings='Brīdinājumu Iestatījumi';
		var L_immedBuy='Display a confirmation box when you immediately buy an item from auction';
		var L_reduceTimeEx='Prasīt apstiprinājumu, kad tu maksā rubīnu lai ietu ekspedīcijā';
		var L_questOpt='Rādīt, ja ir pieejami jauni kvesti vai rādīt atlikušo laiku līdz jauniem';
		var L_forumMessageOpt='Informēt mani, ja ir pienākusi jauna foruma ziņa (ar [ ! ] blakus foruma linkam)';
		var L_weaponAlertOpt='Brīdināt mani, ja man nav ieroča (ar [ ! ] blakus pārskatam)';
		var L_otherSettings='Citi iestatījumi';
		var L_msgchangesOpt='Izmantot ziņu izmaiņas';
		var L_enBBCODE='Lietot BB kodus ziņās';
		var L_enChat='Ieslēgt Čatu (Ģildes, Valsts and Pasaules)';
		var L_enRememberTabs='Atcerēties inventāru un pārdevēju tabus';
		var L_enImages='Izmantot pašu bildes avatariem (spēlētājam un ģildei)';
		var L_disPackageCounters='Rādīt paku informāciju';
		var L_disID='Katra spēlētāja profilā rādīt viņa ID';
		var L_disHeal='Rādīt dziedināšanas statu katra spēlētāja profilā';
		var L_disTrainingChages='Rādīt pamata un maksimuma status pie trenera';
		var L_enHighlight='Izcelt mantas, kuras tu vari nopirkt pie pārdevējiem';
		var L_enStyleFixes='Izmantot dizaina uzlabojumus';
		var L_speedSettings='Ātrdarbības iestatījumi';
		var L_stopPulling='Atslēgt sekojošas iespējas (noderīgi lēnam internetam)';
		var L_willStop='Šī opcija <font color="red"><b>atslēgs</b></font>';
		var L_customCursor='Izvēlies citu kursoru';
		var L_Save='Saglabāt';
		var L_AboutUs='Par Mums';
		var L_Settings='Iestatījumi';
		var L_donateTitle='Ziedo Gladiatus Crazy Add On';
		var L_donateText='Noziedo nedaudz naudas kā pateicību par šo addonu. Ziedojot, tu palīdzēsi addona izstrādē - t.i., vairāk jaunumu, jaunu iespēju un mazāk kļūdu! Klikšķini, lai mūs atbalsītu ';
		var L_description='Gladiatus Crazy Add On ir bezmaksas FireFox addons, kas ievērojami atvieglo spēles gaitu. Have fun with it and enjoy your fights!';
		var L_aboutTitle='Par Gladiatus Crazy Add On';
		var L_descriptionTitle='Apraksts';
		var L_Programmers='Programmētāji';
		var L_Translators='Tulkotāji';
		var L_Hostpage='Mājaslapa';
		var L_ContactUs='Raksti mums';
		var L_Contact1='uz e-pastu Apo59m@gmail.com vai GreatApo@gmail.com';
		var L_Contact2='ar ziņu mūsu spēlētājiem grieķu serveros (GreatApo no s1 un DarkThanos no s2) vai franču serveros (djor no s?)';
		var L_Contact3='vai arī raksti forumā <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Ģrieķija</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">Francija</a> un <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">ASV</a> forum';
		var L_thanksTo='Liels paldies';
		var L_MonsterHunters='Monstru stati/vārdu mednieki';
		var L_ItemHunters='Mantu mednieki';
		var L_HideGoldInAuction='Iekrāsot cenu izsolē, ja es varu pārdot mantu veikalā par tādu pašu cenu, kāda tā ir pašlaik (noderīgi zelta seivošanai)';
		var L_HideGoldInAuction='Iekrāsot cenu izsolē, ja es varu pārdot mantu veikalā par tādu pašu cenu, kāda tā ir pašlaik (noderīgi zelta seivošanai)';
		var L_guildSafeChanges='Lietot ģildes Bankas izmaiņas';
		var L_guildMedicChanges='Rādīt papildus info pie Dziednieka';
		var L_foodBackColor='Sarkans fons ēdienam, kas dod vairāk dzīvības punktu, nekā nepieciešams (pārskatā)';
		var L_packageAlertOpt='Informēt mani, ja pakas drīz tiks dzēstas (12 stundas iepriekš)';
		var L_bugSettings='Bug Settings';
		var L_showBugReports='Show bug reports';
		var L_autoReportBugs='Automatic report bugs to server';
		var L_showNewMessages='Show new messages';
		var L_MorePriceInfoInAuction='Show more price info';
		var L_CheckAffordInAuction='Show if the item can be bought (with &#10003; / &#10007;)';
		var L_allFilterAlert='Display a confirmation box at auction search when "Type of Object" is "All"';
		var L_BetterLife='Better life view';
		var L_fightReminder='Fight reminder';
		//v2.6.0
		var L_sentQuickMessageBox='Send a quick guild message';
		var L_send='Send';
		var L_merchants='Merchants';
		var L_QuestsInfo='Quests Info';
		var L_Takenquests='Taken quests';
		var L_Completedquests='Completed quests';
		var L_Failedquests='Failed quests';
		var L_InactiveQuests='Inactive Quests';
		var L_Workquests='Work quests';
		var L_Itemsquests='Items quests';
		var L_Expeditionquests='Expedition quests';
		var L_Dungeonquests='Dungeon quests';
		var L_Combatquests='Combat quests';
		var L_Arenaquests='Arena quests';
		var L_Turmaquests='Turma quests';
		var L_DisplayQuickMessageBox='Display quick guild message box';
		var L_DisplayDealerTimer='Display the merchants timer (goods renew)';
		var L_titleGenerate='Generate Signature Image';
		var L_clickToGenerate='Click the "Generate" button to generate an image with your stats!';
		var L_generate='Generate';
		var L_saveOnline='Save online';
		var L_uploadingImage='Uploading image to server';
		var L_searchUrl='Searching for url';
		var L_imageUrl='Image url';
		var L_imageNotFound='Image not found!';
		var L_calculateGuildUpgradeTitle='Calculate the gold per player base to the level';
		var L_Include='Include';
		var L_FixedGold='Fixed Gold';
		var L_GoldPerPlayer='Gold Per Player';
		var L_TargetGold='Target gold';
		var L_GoldInBank='Gold in bank';
		var L_notCalculated='not calculated';
		var L_Difference='Difference';
		var L_Attacks='Attacks';
		var L_Defences='Defences';
		var L_Friendly='Friendly';
		var L_GoldLimit='Gold Limit';
		//v2.6.1
		var L_guildLife='Guild Life';
		var L_addAll='+ All';
		var L_donateAll='Donate All';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Done!';
		var L_ManageMercenaries='Manage Mercenaries';
		var L_name='Name';
		var L_protect='Protect';
		var L_leave='Leave';
		var L_selected='Selected';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'nl':
		var L_guildMailTitle='Schrijf Gildebericht;'
		var L_guildMedicTitle='Ga naar Villa Medici';
		var L_guildMarketTitle='Ga naar de Gildemarkt';
		var L_guildStorageTitle='Ga naar het Pakhuis';
		var L_staticsTitle='Mijn stats';
		var L_guildSafeTitle='Go to guild\'s bank';
		var L_guildWarTitle='Go to guild\'s war camp';
		var L_guildJailTitle='Go to guild\'s jail';
		var L_guildLibraryTitle='Go to guild\'s library';

		var L_sure='Ben je zeker ?';
		var L_weaponAlert='Je draagt <font color="red">geen</font> Wapen<font color="red">!</font>';
		var L_newMail='Je hebt een<font color="yellow">nieuw</font> bericht op het forum<font color="yellow">!</font>';
		var L_Full='Vol';
		var L_New='NIEUW';
		var L_newsAlert='Er is een<font color="yellow">nieuw</font> bericht op GCA Nieuws<font color="yellow">!</font>';
		var L_PackagesWillExpire='Pakketten verlopen binnen';
		var L_hours='uur';

		var L_changePlayerImage='Verander spelers afbeelding';
		var L_Overfloated='De afbeelding is te groot';
		var L_plImageWillBeLost='Spelers afbeelding wordt niet opgeslagen';
		var L_plDecriptionWillBeCut='Spelers profiel wordt ingekort';
		var L_defImages='Laat standaard afbeeldingen zien';
		var L_imgMadeFrom='Afbeeldingen zijn gemaakt door';
		var L_changeGuildImage='Verander Gilde afbeelding';
		var L_gImageWillBeLost='Gilde afbeelding wordt niet opgeslagen';
		var L_gDescrtipionWillBeCut='Beschrijving van de gilde wordt ingekort';

		var L_spent='Gekost';
		var L_SimOfTraining = 'Trainings simulator';
		var L_Stat='Statistiek';
		var L_From='Van';
		var L_To='Naar';
		var L_Cost='Kost';
		var L_TrainingCampLevel = 'Trainingsgrond level';
		var L_Reduction='Korting:';
		var L_TotalCost='Totale kosten:';
		var L_Calculate='Bereken';
		var L_TotalCostTitle='Zet mijn stats in de linker kolom';
		var L_CalculateTitle='Bereken de kosten van de stats';

		var L_Simulator='Simulator';
		var L_arena='ARENA';
		var L_Battles='Gevechten';
		var L_Won='Gewonnen';
		var L_Lost='Verloren';
		var L_Draws='Gelijkspel';
		var L_Damage='Schade';
		var L_myAvDamage='Eigen gemiddelde schade';
		var L_hisAvDamage='Tegenstanders gemiddelde schade';
		var L_Life='Levenspunten';
		var L_myRemLife='Overergebleven levenspunten';
		var L_hisRemLife='Overgebleven levenspunten van je tegenstander';
		var L_trainingSim='Trainings Simulator';
		var L_playerA='Speler A';
		var L_playerB='Speler B';
		var L_selectMethod='Selecteer methode';
		var L_selectEnemy='Selecteer vijand';
		var L_byName='Spelersnaam';
		var L_byID='Spelers ID';
		var L_go='Simuleer';
		var L_winnigChance='Kans om te winnen';
		var L_PlayerAAvDamage='Spelers A gemiddelde schade';
		var L_PlayerBAvDamage='Spelers B gemiddelde schade';
		var L_Results='Resultaten';
		var L_ClearAll='Wis alles';
		var L_playerNotFound='Speler niet gevonden !';
		var L_searchData='Zoek data...';
		var L_noStats='Geen stats bekend !';
		var L_thisIsLocation='Dit is een locatie !';

		var L_StorageInfo='Opslag Info';
		var L_itemNum='Aantal Items';
		var L_TotalValue='Totale waarde';
		var L_currentLife='Momentele levenspunten';
		var L_lostLife='Verloren levenspunten';
		var L_healLife='Genezingspunten';
		var L_afterLife='Levenspunten na genezing';
		var L_findGold='Find gold';

		var L_bidNum='Aantal biedingen';
		var L_Items='Voorwerpen';
		var L_selectItem='Selecteer Voorwerp';
		var L_Type='Type';
		var L_selectType='Selecteer Type';
		var L_Clear='Wis';
		var L_veryShort='Zeer Kort';
		var L_anunGuild='Bericht aan Gilde';
		var L_MessageWasSent='Bericht is verstuurd!';
		var L_minDamage='Minimum max-schade';
		var L_weaponsFound='Wapens gevonden';
		var L_improvementsFound='Improvements found';
		var L_itemsFound='Items found';
		var L_select='Selecteer';
		var L_hideGoldHere='You can hide your gold here';
		var L_priceValue='Price = Value';

		var L_OnlinePlayers='Online Spelers';
		var L_guildPlayers='Online Gildegenoten';
		var L_familyPlayers='Online Familia leden';
		var L_noOnlinePlayer='Geen Spelers Online';
		var L_sentMessage='Stuur Bericht';

		var L_gold='Goud';
		var L_Packages='Pakketten';
		var L_invItems='Voorwerpen inventaris';
		var L_packedValue='Waarde\'Pakket voorwerpen';
		var L_invValue='Waarde\' Inventaris voorwerpen';
		var L_total='Totaal';
		var L_PackedGold='Goud pakketten';
		var L_totalGold='Totaal goud';
		var L_totalItemValue='Totale waarde voorwerpen';

		var L_Username='Gebruikersnaam';
		var L_Country='Land';
		var L_GuildChat='Gilde Chat';
		var L_CountryChat='Land Chat';
		var L_GlobalChat='Wereld Chat';

		var L_checkAll='Vink allen aan';
		var L_ID='Spelers ID';
		var L_ratioTitle='Voedsel Ratio | Prijs Ratio';
		var L_noGuildText='Je hebt geen Gilde.<br>als je er wel een hebt ga naar <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+'>hier</a> om je stats te updaten';
		var L_ReadyFor_expedition="You are ready for an expedition fight.";
		var L_ReadyFor_dungeon="You are ready for a dungeon fight.";
		var L_ReadyFor_arena="You are ready for an arena fight.";
		var L_ReadyFor_ct="You are ready for a circus turma fight.";
		var L_Redirect_Q="Do you want to be redirected there?";
		
		var L_GCASettings='Gladiatus Crazy Add On Instellingen';
		var L_HeaderSettings='Kop instellingen';
		var L_DisplayLife='Laat levensbalk zien bovenaan';
		var L_DisplayLifePercent='Laat levens-punten- percentage zien (geen mouse over)';
		var L_DisplayLinkButtons='Plaats knoppen bovenaan';
		var L_DisplayAuctionStatus='Laat veiling status zien';
		var L_DisplayMerchantStatus='Voeg huurlingen veiling toe aan de veiling status';
		var L_DisplayOnlinePlayersButton='Laat de "Online Spelers" knop zien';
		var L_DisplayLinkBox='Laat de Link Box aan de rechterkant zien';
		var L_TimersSettings='Timers instellingen';
		var L_DisplayLastBeingAttacked='Laat de verlopen tijd zien van laatste aanval op je';
		var L_DisplayLastBeingAttacked2='Laat de verlopen tijd zien van laatste aanval op je in Circus Turma';
		var L_AuctionSettings='Veiling Instellingen';
		var L_FillAuctionPrices='Automatisch prijzen ingevuld op de veiling';
		var L_ChangeItemsBgColor='Verander de achtergrond kleur (gebaseerd op kwaliteit) op de veiling';
		var L_AuctionMoreItemsLavels='Meer levels in het filterveld';
		var L_DisplayItemNumAndBids='Laat het aantal voorwerpen en biedingen zien';
		var L_DisplayItemList='Laat een voorwerpennaam filterlijst zien op de veiling en de markt';
		var L_ExpandAuctionTable3='Breid het veilingsoverzicht uit (3 voorwerpen per rij)';
		var L_SimulatorSettings='Simulator instellingen';
		var L_enSimulator='Zet de PvP simulator aan bij iedere spelers \'profiel';
		var L_setFightNum='Stel het aantal simulatie gevechten in';
		var L_maximum='maximum';
		var L_guildSettings='Gilde en markt instellingen';
		var L_guildStoreInfo='Laat een info box zien bij het pakhuis';
		var L_moreGuildStats='Laat meer stats zien in de kampioenszaal voor rivaliserende gildes';
		var L_monsterSimulator='Laat de trainings simulator zien bij de trainingsgrond';
		var L_gmailChanges='Sta toe gildeberichten te veranderen';
		var L_ratioOpt='Stelt de "Ratio" waarde in(voedsel en prijs) van elk voorwerp op de markt';
		var L_enPriceRatio='Zet de prijs "Ratio" waarde aan (dit is niet echt acuraat)';
		var L_alertSettings='Alarm instellingen';
		var L_immedBuy='Open een popup als je een directe koop doet op de veiling';
		var L_reduceTimeEx='Open een popup als je een juweel betaald om een expeditie te doen';
		var L_questOpt='Informeer me als er nieuwe quest beschikbaar is en laat de resterende tijd zien voor een nieuwe';
		var L_forumMessageOpt='waarschuw me als ik een nieuw bericht heb ontvangen (met een [ ! ] op de forum link)';
		var L_weaponAlertOpt='Waarschuw me als ik geen wapen draag (met een [ ! ] op de Overzicht link)';
		var L_otherSettings='Andere instellingen';
		var L_msgchangesOpt='Sta toe berichten te veranderen';
		var L_enBBCODE='Laat het gebruik van BBCODE toe in berichten';
		var L_enChat='Aanzetten Chat (Gilde, Land en Wereld)';
		var L_enRememberTabs='Onthoud je laatst gebruikte tab\'s van je inventaris,koopmannen en markten';
		var L_enImages='Aangepaste Spelers en gilde afbeeldingen systeem';
		var L_disPackageCounters='Toon pakket tellers';
		var L_disID='Toon de  ID van iedere speler onder zijn stats';
		var L_disHeal='Toon de GENEZING stat van iedere speler onder zijn stats';
		var L_disTrainingChages='Toon de basis stats en de max verbetering bij de training';
		var L_enHighlight='Highlight de voorwerpen die je bij de koopmannen kunt kopen';
		var L_enStyleFixes='Apply style fixes';
		var L_speedSettings='Snelheids instellingen';
		var L_stopPulling='Stop info laden als de pagina laad (optie voor trage verbindingen)';
		var L_willStop='Deze optie zal  <font color="red"><b>stoppen</b></font>';
		var L_customCursor='Kies een aangepaste cursor';
		var L_Save='Save';
		var L_AboutUs='Over ons';
		var L_Settings='Instellingen';
		var L_donateTitle='Doneer aan Gladiatus Crazy Add On';
		var L_donateText='Bedank en help ons ook door een bijdrage te doneren op onze PayPal account. Door het doneren help je ons zodat wij kunnen blijven werken aan deze addon wat zal resulteren in meer updates, nieuwe mogelijkheden en geen Bugs!! Klik op de knop om ons te steunen';
		var L_description='Gladiatus Crazy Add On is een gratis Add on die je helpt met  de vele extra mogelijkheden in Gladiatus. De Add on gebruikt en geeft betere info dan dat de game server naar jou browser stuurt. Veel plezier met de Add on en geniet van je gevechten!';
		var L_aboutTitle='About Gladiatus Crazy Add On';
		var L_descriptionTitle='Beschrijving';
		var L_Programmers='Programmeurs';
		var L_Translators='Vertalers';
		var L_Hostpage='Hostpagina';
		var L_ContactUs='Neem contact met ons';
		var L_Contact1='via e-mail naar Apo59m@gmail.com of GreatApo@gmail.com';
		var L_Contact2='Met berichten naar onze spelers op de Griekse servers (GreatApo at s1 and DarkThanos at s2) of op de Franse server (djor at s?)';
		var L_Contact3='of via de 3 open topics op het <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Griekse</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">Franse</a> and <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">Amerikaanse</a> forum';
		var L_thanksTo='Met dank aan';
		var L_MonsterHunters='Monster stats/naam jagers';
		var L_ItemHunters='Voorwerpen jagers';
		var L_HideGoldInAuction='Kleur/Highlight de ingaveals je het voorwerp voor dezelfde prijs aan de koopmannen kan verkopen als je er voor geboden hebt';
		var L_HideGoldInAuction='Kleur/Highlight de ingave als je het voorwerp voor dezelfde prijs aan de koopmannen kan verkopen als je er voor geboden hebt';
		var L_guildSafeChanges='Knop voor sneldonatie in de gildebank';
		var L_guildMedicChanges='Toon meer info bij Villa Medici';
		var L_foodBackColor='Rode achtergrond voor voedsel dat meer levenspunten geeft dan nodig is (in je rugzak)';
		var L_packageAlertOpt='Informeer me als pakketten gaan vervallen (12 uur van te voren)';
		var L_bugSettings='Bug Settings';
		var L_showBugReports='Show bug reports';
		var L_autoReportBugs='Automatic report bugs to server';
		var L_showNewMessages='Show new messages';
		var L_MorePriceInfoInAuction='Show more price info';
		var L_CheckAffordInAuction='Show if the item can be bought (with &#10003; / &#10007;)';
		var L_allFilterAlert='Display a confirmation box at auction search when "Type of Object" is "All"';
		var L_BetterLife='Better life view';
		var L_fightReminder='Fight reminder';
		//v2.6.0
		var L_sentQuickMessageBox='Send a quick guild message';
		var L_send='Send';
		var L_merchants='Merchants';
		var L_QuestsInfo='Quests Info';
		var L_Takenquests='Taken quests';
		var L_Completedquests='Completed quests';
		var L_Failedquests='Failed quests';
		var L_InactiveQuests='Inactive Quests';
		var L_Workquests='Work quests';
		var L_Itemsquests='Items quests';
		var L_Expeditionquests='Expedition quests';
		var L_Dungeonquests='Dungeon quests';
		var L_Combatquests='Combat quests';
		var L_Arenaquests='Arena quests';
		var L_Turmaquests='Turma quests';
		var L_DisplayQuickMessageBox='Display quick guild message box';
		var L_DisplayDealerTimer='Display the merchants timer (goods renew)';
		var L_titleGenerate='Generate Signature Image';
		var L_clickToGenerate='Click the "Generate" button to generate an image with your stats!';
		var L_generate='Generate';
		var L_saveOnline='Save online';
		var L_uploadingImage='Uploading image to server';
		var L_searchUrl='Searching for url';
		var L_imageUrl='Image url';
		var L_imageNotFound='Image not found!';
		var L_calculateGuildUpgradeTitle='Calculate the gold per player base to the level';
		var L_Include='Include';
		var L_FixedGold='Fixed Gold';
		var L_GoldPerPlayer='Gold Per Player';
		var L_TargetGold='Target gold';
		var L_GoldInBank='Gold in bank';
		var L_notCalculated='not calculated';
		var L_Difference='Difference';
		var L_Attacks='Attacks';
		var L_Defences='Defences';
		var L_Friendly='Friendly';
		var L_GoldLimit='Gold Limit';
		//v2.6.1
		var L_guildLife='Guild Life';
		var L_addAll='+ All';
		var L_donateAll='Donate All';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Done!';
		var L_ManageMercenaries='Manage Mercenaries';
		var L_name='Name';
		var L_protect='Protect';
		var L_leave='Leave';
		var L_selected='Selected';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'hu':
		var L_guildMailTitle='Egyesületi üzenet írása';
		var L_guildMedicTitle='Villa Medici';
		var L_guildMarketTitle='Egyesületi piac';
		var L_guildStorageTitle='Egyesületi raktár';
		var L_staticsTitle='Statisztikáim';
		var L_guildSafeTitle='Egyesületi bank';
		var L_guildWarTitle='Harcmesterek Csarnoka';
		var L_guildJailTitle='Negotium X';
		var L_guildLibraryTitle='Egyesületi könyvtár';

		var L_sure='Biztosan ?';
		var L_weaponAlert='<font color="red">Nincs</font> fegyver a kezedben<font color="red">!</font>';
		var L_newMail='You have a <font color="yellow">new</font> message at forum<font color="yellow">!</font>';
		var L_Full='Tele';
		var L_New='Új';
		var L_newsAlert='<font color="yellow">Új</font> GCA üzenet<font color="yellow">!</font>';
		var L_PackagesWillExpire='Csomagjaid hamarosan lejárnak';
		var L_hours='óra';

		var L_changePlayerImage='Játékos képének cseréje';
		var L_Overfloated='Túl nagy';
		var L_plImageWillBeLost='A kijelölt kép nem került mentésre.';
		var L_plDecriptionWillBeCut='A kép átmeretezésre kerül';
		var L_defImages='Az alapértelmezett képek jelenjenek meg';
		var L_imgMadeFrom='A képeket készítette';
		var L_changeGuildImage='Egyesületi logó cseréje';
		var L_gImageWillBeLost='A kijelölt kép nem került mentésre.';
		var L_gDescrtipionWillBeCut='A kép átmeretezésre kerül';

		var L_spent='ráfordítás';
		var L_SimOfTraining = 'Gyakorlás szimulátor';
		var L_Stat = 'Kategória';
		var L_From = 'Kiindulás';
		var L_To = 'Cél';
		var L_Cost = 'Ár';
		var L_TrainingCampLevel = 'Gyakorlótér szintje';
		var L_Reduction ='Megtakarítás:';
		var L_TotalCost = 'Teljes ár:';
		var L_Calculate = 'Számolj';
		var L_TotalCostTitle = 'A jelenlegi értékeim kerüljenek a bal oldali oszlopba';
		var L_CalculateTitle = 'Az összes ára';

		var L_Simulator='Szimulátor';
		var L_arena='ARÉNA';
		var L_Battles='Harcok';

		var L_Won='Győzelem';
		var L_Lost='Vereség';
		var L_Draws='Döntetlen';
		var L_Damage='Sebzés';
		var L_myAvDamage='Átlagos sebzésed';
		var L_hisAvDamage='Ellenfeled átlagos sebzése';
		var L_Life='Életerő';
		var L_myRemLife='Megmaradó életerő';
		var L_hisRemLife='Ellenfeled megmaradó életereje';
		var L_trainingSim='Gyakorlás szimulátor';
		var L_playerA='A játékos';
		var L_playerB='B játékos';
		var L_selectMethod='Válassz módszert';
		var L_selectEnemy='Válassz ellenfelet';
		var L_byName='Játékost a neve alapján';
		var L_byID='Játékost ID alapján';
		var L_go='Mehet!';
		var L_winnigChance='Győzelmi esély';
		var L_PlayerAAvDamage='A játékos átlagos sebzése';
		var L_PlayerBAvDamage='B játékos átlagos sebzése';
		var L_Results='Eredmény';
		var L_ClearAll='Az összes törlése';
		var L_playerNotFound='Nincs ilyen játékos';
		var L_searchData='Keresem...';
		var L_noStats='Nincs ilyen statisztika';
		var L_thisIsLocation='Ez egy hely';

		var L_StorageInfo='Raktári információ';
		var L_itemNum='Tárgyak száma';
		var L_TotalValue='Összes értéke';
		var L_currentLife='Aktuális életerő';
		var L_lostLife='Elvesztett életerő';
		var L_healLife='Gyógyított életerő';
		var L_afterLife='Életerő gyógyítás után';
		var L_findGold='Arany keresése';

		var L_bidNum='Összes licitek száma';
		var L_Items='Tárgyak';
		var L_selectItem='Válassz tárgyat';
		var L_Type='Típus';
		var L_selectType='Válassz típust';
		var L_Clear='Törlés';
		var L_veryShort='Nagyon rövid';
		var L_anunGuild='Jelentem az egyesületben';
		var L_MessageWasSent='Üzenet elküldve!';
		var L_minDamage='Legkisebb-legnagyobb sebzés';
		var L_weaponsFound='Találtam fegyvert';
		var L_improvementsFound='Találtam fejlesztést';
		var L_itemsFound='tárgyat találtam';
		var L_select='Válassz';
		var L_hideGoldHere='Itt tudod elmenteni az aranyadat';
		var L_priceValue='Ár = Érték';
		//Online Players
		var L_OnlinePlayers='Online játékosok';
		var L_guildPlayers='Online egyesületi tagok';
		var L_familyPlayers='Online barátok';
		var L_noOnlinePlayer='Nincs senki online';
		var L_sentMessage='Elküldött üzenet';
		//Packages
		var L_gold='Arany';
		var L_Packages='Csomagok';
		var L_invItems='Zsákok tartalma';
		var L_packedValue='Csomagjaid értéke';
		var L_invValue='Zsákjaid értéke';
		var L_total='Összesen';
		var L_PackedGold='Csomagolt arany';
		var L_totalGold='Összes szerzett arany';
		var L_totalItemValue='A tárgyak összesített értéke';
		//Chat
		var L_Username='Felhasználónév';
		var L_Country='Ország';
		var L_GuildChat='Egyesületi Chat';
		var L_CountryChat='Országos Chat';
		var L_GlobalChat='Nemzetközi Chat';
		//Other
		var L_checkAll='Összes kijelölése';
		var L_ID='Játékos ID-je';
		var L_ratioTitle='Élelem | Ár';
		var L_noGuildText='Nem vagy egyeület tagja.<br>Amennyiben mégis, úgy kattints <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >erre a linkre</a> , hogy frssüljön a statisztikád.';
		var L_ReadyFor_expedition="Készen állsz az expedícióra.";
		var L_ReadyFor_dungeon="Készen állsz az alvilági harcra.";
		var L_ReadyFor_arena="Készen állsz az aréna harcra.";
		var L_ReadyFor_ct="Készen állsz a harcra a Circus Turmában.";
		var L_Redirect_Q="Valóban át akarod oda irányítani magad?";
		
		var L_GCASettings='A Gladiatus Crazy Add On Beállításai';
		var L_HeaderSettings='Fejléc beállítása';
		var L_DisplayLife='Életerő mutatása a fejlécen';
		var L_DisplayLifePercent='Mutasd az életerőt pontban, és százalékban is';
		var L_DisplayLinkButtons='Link gombok elhelyezése a fejlécen';
		var L_DisplayAuctionStatus='Aukció állapotának kijelzése a fejlécen';
		var L_DisplayMerchantStatus='Zsoldos aukció állapotának mutatása';
		var L_DisplayOnlinePlayersButton='Mutasd az "Online játékosok" gombot a fejlécen';
		var L_DisplayLinkBox='Jelenjen meg egy link-doboz az oldal jobb oldalán';
		var L_TimersSettings='Időmérők beállításai';
		var L_DisplayLastBeingAttacked='Annak kijelzése, hogy mennyi ideje támadtak meg az arénában utoljára.';
		var L_DisplayLastBeingAttacked2='Annak kijelzése, hogy mennyi ideje támadtak meg az Circus Turmában utoljára.';
		var L_AuctionSettings='Aukciós beállítások';
		var L_FillAuctionPrices='Az árak automatikus kitöltése';
		var L_ChangeItemsBgColor='A tárgy minősége alapján változó színű háttér az aukción.';
		var L_AuctionMoreItemsLavels='Több választható szint a szűrésnél';
		var L_DisplayItemNumAndBids='Az aukción résztvevő tárgyak, és a licitek számának mutatása.';
		var L_DisplayItemList='Tárgylista mutatása a kereső dobozban';
		var L_ExpandAuctionTable3='3 tárgy jelenjen meg egy sorban.';
		var L_SimulatorSettings='A szimulátor beállításai';
		var L_enSimulator='Játékos-Játékos elleni szimulátor (JvJ) engedélyezése a karaterprofilon.';
		var L_setFightNum='Szimulált harcok száma';
		var L_maximum='legfeljebb';
		var L_guildSettings='Egyesület, és piaci beállítások';
		var L_guildStoreInfo='Információs doboz megjelenítése az egyesületi raktárnál.';
		var L_moreGuildStats='Több statisztika mutatása az csatánál, a harcmesterek csarnokában.';
		var L_monsterSimulator='Gyakorlás szimulátor mutatása az egyesületi gyakorlótéren.';
		var L_gmailChanges='Egyesületi üzenetekkel kapcsolatos változtatások engedélyezése (pl.:kinézet).';
		var L_ratioOpt='Az "Arány" mutatása (étel, és ár) a piacon, minden terméknél.';
		var L_enPriceRatio='Az "Arány" engedélyezése (nem túl pontos).';
		var L_alertSettings='Riasztási beállítások';
		var L_immedBuy='Aukciórol való kivásárláskor felugró ablak megjelenítése.';
		var L_reduceTimeEx='Felugró ablak megjelenítése, ha az expedíciót rubinnal váltanád ki.';
		var L_questOpt='Figyelmeztessen, ha van elérhető új küldetés, egyébként pedig jelezze ki a hátralévő időt.';
		var L_forumMessageOpt='Jelezzen, ha új egyesületi üzenet érkezett ([ ! ] jelenik meg az egyesület gomb mellett).';
		var L_weaponAlertOpt='Figyelmeztessen, ha nincs a kezemben fegyver ([ ! ] jelenik meg az áttekintés gomb mellett)';
		var L_otherSettings='Egyéb beállítások';
		var L_msgchangesOpt='Üzenetekkel kapcsolatos változások engedélyezése';
		var L_enBBCODE='Üzenetekben engedélyezze a BBCODE-ot';
		var L_enChat='Chat engedélyezése (egyesületi, országos, és nemzetközi)';
		var L_enRememberTabs='Emlékezzen az utoljára megnyitott oldalakra (zsákjaid, kereskedőknél).';
		var L_enImages='Engedélyezze az egyéni játékos, és egyesületi képeket.';
		var L_disPackageCounters='Csomag számláló mutatása';
		var L_disID='Mutassa a játékos ID-jét, a statisztikák oldalon';
		var L_disHeal='Jelenjen meg a gyógyítási érték minden játékosnál.';
		var L_disTrainingChages='Gyakorlásnál látszódjanak a játékos alapjai, és a gyakorlással elérhető maximális értékek is.';
		var L_enHighlight='Kereskedőknél emelje ki az azonnal megvásárolható termékeket.';
		var L_enStyleFixes='Stílus-javítások engedélyezése.';
		var L_speedSettings='Sebességgel kapcsolatos beállítások';
		var L_stopPulling='A lap betöltődésekor ne kérjen le információkat (lassú kapcsolat esetén).';
		var L_willStop='Ez az opció <font color="red"><b>letiltja</b></font>';
		var L_customCursor='Válassz egyéni kurzort';
		var L_Save='Mentés';
		var L_AboutUs='Rólunk';
		var L_Settings='Beállítások';
		var L_donateTitle='Támogasd Gladiatus Crazy Add On-t';
		var L_donateText='Köszönjük, hogy támogatsz minket a PayPal rendszeren át.Segítségeddel folytatni tudjuk ennek a kiegészítőnek fejlesztését - ez gyakoribb frissítéseket, új funkciókat, gyorsabb hibajavítást jelent. Kattints a Támogass minket gombra!';
		var L_description='A Gladiatus Crazy Add On egy ingyenes kiegészítő, mely funkcióival segíti, és megkönnyíti a játékot a Gladiatuson. Segítségével több információhoz juthatsz a játékban. Jó játékot, és élvezd a harcokat!';
		var L_aboutTitle='A Gladiatus Crazy Add On-ról';
		var L_descriptionTitle='Leírás';
		var L_Programmers='Programozók';
		var L_Translators='Fordították';
		var L_Hostpage='Honlapunk';
		var L_ContactUs='Lépj kapcsolatba velünk';
		var L_Contact1='e-mail címem: Apo59m@gmail.com , illetve GreatApo@gmail.com';
		var L_Contact2=' a görög szervereken üzenetben is (GreatApo s1-en, és DarkThanos az s2-n), a francia szerveren (djor s?)';
		var L_Contact3='elérhetőek vagyunk még 3 fórumon is <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Görög</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">Francia</a> and <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a>';
		var L_thanksTo='Nagy köszönettel tartozunk az alábbiaknak';
		var L_MonsterHunters='Szörny statisztikák/nevének keresése';
		var L_ItemHunters='Tárgy kereső';
		var L_HideGoldInAuction='Színezze/emelje ki a bevitt adatot, ha a licittel azonos áron lehet eladni a tárgyat a kereskedőnél.';
		var L_HideGoldInAuction='Színezze/emelje ki a bevitt adatot, ha a licittel azonos áron lehet eladni a tárgyat a kereskedőnél.';
		var L_guildSafeChanges='Az egyesületi bank extra funkciónak engedélyezése.';
		var L_guildMedicChanges='Több adat mutatása a Villa Mediciben.';
		var L_foodBackColor='Vörös háttérrel emelje ki azokat az ételeket, amelyek több életerőt gyógyítanak, mint amennyi szükséges (áttekintésnél).';
		var L_packageAlertOpt='Értesítsen, mielőtt a csomagjaid lejárnak (12 órával előtte).';
		var L_bugSettings='Hiba beállítások';
		var L_showBugReports='Hibajelentés mutatása';
		var L_autoReportBugs='Hibák automatikus jelentése';
		var L_showNewMessages='Új üzenetek megjelenítése';
		var L_MorePriceInfoInAuction='Mutasson több információt az árról';
		var L_CheckAffordInAuction='Mutassa, ha a tárgy megvásárolható ( &#10003; / &#10007;)';
		var L_allFilterAlert='Figyelmeztessen, ha az aukción a "Mind"-et adod meg.';
		var L_BetterLife='Javított életerő kijelzés';
		var L_fightReminder='Csata emlékeztető';
		//v2.6.0
		var L_sentQuickMessageBox='Egyesületi üzenet küldése';
		var L_send='Küldés';
		var L_merchants='Kereskedők';
		var L_QuestsInfo='Feladat info';
		var L_Takenquests='Elvállalt feladatok';
		var L_Completedquests='Teljesített feladatok';
		var L_Failedquests='Sikertelen feladatok';
		var L_InactiveQuests='Inaktív feladatok';
		var L_Workquests='Munka feladatok';
		var L_Itemsquests='Tárgyas feadatok';
		var L_Expeditionquests='Küldetéses feladatok';
		var L_Dungeonquests='Alvilági feladatok';
		var L_Combatquests='Harci feladatok';
		var L_Arenaquests='Aréna feladatok';
		var L_Turmaquests='Turma feladatok';	
		var L_DisplayQuickMessageBox='Gyors egyesületi üzenet ikon mutatása';
		var L_DisplayDealerTimer='Kereskedők váltásáig fennmaradó idő kijelzése';
		var L_titleGenerate='Aláírás-kép készítése';
		var L_clickToGenerate='Kattints a "készítés" gombra, hogy elkészüljön a kép a statisztikáidról.';
		var L_generate='Készítés';
		var L_saveOnline='Online tárolás';
		var L_uploadingImage='Kép feltöltése a szerverre folyamatban';
		var L_searchUrl='url keresése';
		var L_imageUrl='A kép url címe';
		var L_imageNotFound='A kép nem található!';
		var L_calculateGuildUpgradeTitle='Beadandó arany / játékos (szinthez igazított)';
		var L_Include='Részt vesz';
		var L_FixedGold='Felajánlott arany';
		var L_GoldPerPlayer='Beadandó arany';
		var L_TargetGold='A fejlesztés ára';
		var L_GoldInBank='Bankban lévő arany';
		var L_notCalculated='nincs beleszámítva';
		var L_Difference='Eltérés';
		var L_Attacks='Támadások';
		var L_Defences='Védések';
		var L_Friendly='Barát';
		var L_GoldLimit='Arany limit';
		//v2.6.1
		var L_guildLife='Tagok életereje';
		var L_addAll='+ Összes';
		var L_donateAll='Minden pénzt a bankba';
		var L_visiteYourGuildsMemberPage='Egyesületi üzenet küldése előtt el kell mentened a tagok ID-jét.\nMegteszed most?';
		var L_Done='Kész!';
		var L_ManageMercenaries='Zsoldosok kezelése';
		var L_name='Név';
		var L_protect='Védelem';
		var L_leave='Kikapcsol';
		var L_selected='Kiválasztva';
		var L_itemsAreNotSaved='A tárgyak súgójához először meg kell látogatnod ennek a játékosnak profilját.';
		var L_mercenariesAreNotSaved=' A zsoldosok súgójához előbb meg kell nyitnod az alvilági karaktered profilját.';
		var L_changeAuctionCompareItems='Választási lehetőség aukciónál, hogy melyik karakterhez hasonlítsa az adott tárgyat.';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='Arany:';
		var L_time='idő';
		var L_expedition='Expedíció';
		var L_turma='Turma';
		var L_dungeon='Alvilág';
		var L_titleSettings='Az oldal císorának beállításai';
		var L_enableTitle='Egyéni címsor engedélyezése.';
		var L_showLogoTitle='Látszódjon a "Gladiatus" felirat a címben.';
		var L_showServerTitle='Látszódjon a szerver, és az ország neve.';
		var L_customTitleType='Válaszd ki, mi egyebet szeretnél még látni';
		var L_enableTitlePoints='Az expedíciós/alvilági pontok megjelenítése az idő mellett';
		var L_cancelAll='Összes visszavonása';
		var L_numberOfMyItems='Tárgyaim száma';
		var L_seeThisReport='Jelentés megtekintése';
		var L_TopBar='Információs fejléc megjelenítése lefelé görgetés esetén.';
		//v2.9.0
		var L_titleImages = 'A kép beállításai';
		var L_showCustomsTitle = 'Ha van használatban öltözék, akkor azt mutassa, és ne a képet.';
		var L_collectGold='Arany felvétele';
		var L_itemSearch='Tárgy keresése';
		var L_noteRenewMerchantsTime='Ha a kereskedők várakozási ideje lejárt, új áruk érkeznek';
		var L_merchantsItems='Tárgyak a kereskedőknél';
		var L_auctionItems='Tárgyak az aukción';
		var L_itemName='Tárgy neve';
		break;
	case 'dk':
		var L_guildMailTitle='Skriv ordens besked';
		var L_guildMedicTitle='Gε til orden\'s Villa Medici';
		var L_guildMarketTitle='Gε til orden\'s marked';
		var L_guildStorageTitle='Gε til orden\'s Lagerhus';
		var L_staticsTitle='Mine stats';
		var L_guildSafeTitle='Naar de \ Bank';
		var L_guildWarTitle='Naar de \Kampioenszaal';
		var L_guildJailTitle='Naar \Nexotium X';
		var L_guildLibraryTitle='Naar de \Bibliotheek';

		var L_sure='Er du sikker ?';
		var L_weaponAlert='Du er <font color="red">ikke</font> ifψrt et vεben<font color="red">!</font>';
		var L_newMail='<Du har en <font color="yellow">ny</font> besked i forum<font color="yellow">!</font>';
		var L_Full='Fuld';
		var L_New='NY';
		var L_newsAlert='Der er en <font color="yellow">ny</font> besked i GCA News<font color="yellow">!</font>';
		var L_PackagesWillExpire='Pakker vil snart forsvinde';
		var L_hours='Timer';

		var L_changePlayerImage='Skift spiller\'s billede';
		var L_Overfloated='Billede er for stort';
		var L_plImageWillBeLost='Spiller\'s billede vil gε tabt og ikke blive gemt';
		var L_plDecriptionWillBeCut='Spiller\'s beskrivelse vil blive skεret til at passe';
		var L_defImages='Vis Standard billeder';
		var L_imgMadeFrom='Billeder blev lavet af';
		var L_changeGuildImage='Skift ordens billede';
		var L_gImageWillBeLost='Ordens\'s Billedet vil blive tabt og vil ikke blive gemt';
		var L_gDescrtipionWillBeCut='Ordens\'s beskrivelse vil blive skεret til at passe';

		var L_spent='Brugt';
		var L_SimOfTraining = 'trζningssimulator';
		var L_Stat = 'Statistik';
		var L_From = 'Fra';
		var L_To = 'Til';
		var L_Cost = 'Koster';
		var L_TrainingCampLevel = 'Trζningslejr niveau';
		var L_Reduction ='reduktion:';
		var L_TotalCost = 'Samlede omkostninger:';
		var L_Calculate = 'Beregn';
		var L_TotalCostTitle = 'Put mine stats i venstre kolonne';
		var L_CalculateTitle = 'Beregne omkostningerne ved alle statistikker';

		var L_Simulator='Simulator';
		var L_arena='ARENA';
		var L_Battles='Kampe';
		var L_Won='Vundet';
		var L_Lost='Tabt';
		var L_Draws='Draws';
		var L_Damage='Skade';
		var L_myAvDamage='Din Gennemsnitlig Skader';
		var L_hisAvDamage='Modstander \'s Gennemsnitlig Damage';
		var L_Life='Liv';
		var L_myRemLife='Dit tilbagevζrende liv';
		var L_hisRemLife='Modstander \'s tilbagevζrende Liv';
		var L_trainingSim='Training Simulator';
		var L_playerA='Spiller A';
		var L_playerB='Spiller B';
		var L_selectMethod='Vζlg metode';
		var L_selectEnemy='Vζlg fjende';
		var L_byName='spiller ved navn';
		var L_byID='Spiller ved ID';
		var L_go='ANGRIB!';
		var L_winnigChance='Chance for at vinde';
		var L_PlayerAAvDamage='Player \'s A gennemsnitlige skade';
		var L_PlayerBAvDamage='Player \'s B gennemsnit skader';
		var L_Results='resultat';
		var L_ClearAll='Ryd alle';
		var L_playerNotFound='Spilleren ikke fundet';
		var L_searchData='Sψgning af data...';
		var L_noStats='Ingen statistik for dette';
		var L_thisIsLocation='Dette er et sted';

		var L_StorageInfo='lageroplysning';
		var L_itemNum='Antal Items';
		var L_TotalValue='Samlet vζrdi';
		var L_currentLife='Nuvζrende livspoint';
		var L_lostLife='Lost livspoint';
		var L_healLife='Heal livspoint';
		var L_afterLife='Dit liv efter healing';
		var L_findGold='Find guld';

		var L_bidNum='Antal bud';
		var L_Items='Items';
		var L_selectItem='Vζlg Item';
		var L_Type='Type';
		var L_selectType='Vζlg Type';
		var L_Clear='Klar Input';
		var L_veryShort='Meget kort';
		var L_anunGuild='Announce for at Ordens';
		var L_MessageWasSent='Beskeden blev sendt!';
		var L_minDamage='Minimum max-skader';
		var L_weaponsFound='Vεben fundet';
		var L_improvementsFound='Forbedringer fundet';
		var L_itemsFound='Gevonden Voorwerpen';
		var L_select='Vζlg';
		var L_hideGoldHere='Du kan skjule dit guld her';
		var L_priceValue='Pris = vζrdi';

		var L_OnlinePlayers='Online Spillere';
		var L_guildPlayers='Online Ordens Spillere';
		var L_familyPlayers='Online Venner';
		var L_noOnlinePlayer='Ingen spiller online';
		var L_sentMessage='sendt meddelelse';

		var L_gold='guld';
		var L_Packages='pakker';
		var L_invItems='Bag Items';
		var L_packedValue='Pakkede items\' vζrdi';
		var L_invValue='Bag items\' vζrdi';
		var L_total='Samlet';
		var L_PackedGold='Medbragt guld';
		var L_totalGold='Samlet fik guld';
		var L_totalItemValue='Samlet items vζrdi';

		var L_Username='Brugernavn';
		var L_Country='Land';
		var L_GuildChat='Ordens Chat';
		var L_CountryChat='Lands Chat';
		var L_GlobalChat='Verdens Chat';

		var L_checkAll='Tjek Alle';
		var L_ID='Spiller\'s ID';
		var L_ratioTitle='Mad fRatio | Pris Ratio';
		var L_noGuildText='Du har ikke en Orden.<br>Hvis du har en sε gε til <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >here</a> For dine stats opdateres';
		var L_ReadyFor_expedition="Je bent klaar voor een expeditie.";
		var L_ReadyFor_dungeon="Je bent klaar voor een Dungeon.";
		var L_ReadyFor_arena="Je bent klaar voor een arena gevecht.";
		var L_ReadyFor_ct="Je bent klaar voor een circus turma gevecht.";
		var L_Redirect_Q="Wil je worden omgeleid naar daar ?";
		
		var L_GCASettings='Gladiatus Crazy Add On indstillinger';
		var L_HeaderSettings='sidehoved Indstillinger';
		var L_DisplayLife='Vis liv bar pε header';
		var L_DisplayLifePercent='Vise bεde livspoint og liv procent (no mouseover)';
		var L_DisplayLinkButtons='Vis link knapper pε header';
		var L_DisplayAuctionStatus='Vis auktion status pε header';
		var L_DisplayMerchantStatus='Tilfψj kψbmanden\'s auktion status pε header';
		var L_DisplayOnlinePlayersButton='Vis "Online Spillere" knappen pε header';
		var L_DisplayLinkBox='Vis Link boks til hψjre pε siden';
		var L_TimersSettings='timere Indstillinger';
		var L_DisplayLastBeingAttacked='Viser tiden fra sidste gang, du er blevet angrebet';
		var L_DisplayLastBeingAttacked2='Viser tiden fra sidste gnag, du er blevet angrebet fra Circus Turma';
		var L_AuctionSettings='Auktion Indstillinger';
		var L_FillAuctionPrices='Auto fylde priser pε auktion';
		var L_ChangeItemsBgColor='Skif Items\' Baggrund (baseret pε kvalitet) pε auktion';
		var L_AuctionMoreItemsLavels='Flere vare levels pε auktion sψgefelt';
		var L_DisplayItemNumAndBids='Vis antallet af items og antallet af bud pε auktion';
		var L_DisplayItemList='Vis en items liste pε auktioner og markeder sψgefelt';
		var L_ExpandAuctionTable3='Expand the auction table (3 items in every row)';
		var L_SimulatorSettings='simulator Indstillinger';
		var L_enSimulator='Aktiver PvP simulator pε alle spillere \'s profil';
		var L_setFightNum='Indstil antallet af simulerede kampe';
		var L_maximum='maksimal';
		var L_guildSettings='Ordens & OrdensMarket Indstillinger';
		var L_guildStoreInfo='Vis info boksen i Ordens \'s lager';
		var L_moreGuildStats='Vis mere statistik pε ordens \'s krig lejr for de ordens modstanderen';
		var L_monsterSimulator='Vis trζningssimulator pε ordens \'s uddannelse bygning';
		var L_gmailChanges='Aktiver Guild mail ζndringer';
		var L_ratioOpt='Vis "forhold" vζrdi (mad og pris) af hver post i markedet';
		var L_enPriceRatio='Aktiver pris "forhold" vζrdi (det er ikke meget prζcis)';
		var L_alertSettings='advarsel Settings';
		var L_immedBuy='Vis en bekrζftelse boks, nεr du straks kψber et item fra auktion';
		var L_reduceTimeEx='Vis en bekrζftelse boks, nεr du betaler en rubin til at foretage en ekspedition';
		var L_questOpt='Informer mig, hvis jeg har en ny mission til rεdighed, eller vise den resterende tid';
		var L_forumMessageOpt='Informer mig, hvis jeg har en ny forum meddelelse (med et [!] Nζste til forum link)';
		var L_weaponAlertOpt='Informer mig, hvis jeg ikke bζre et vεben (med et [!] Nζste til oversigt link)';
		var L_otherSettings='andre indstillinger';
		var L_msgchangesOpt='Aktiver besked ζndringer';
		var L_enBBCODE='Aktiver BBCode ved beskeder';
		var L_enChat='Aktiver Chat (Guild, Land og Global)';
		var L_enRememberTabs='Husk din beholdning \'s og kψbmand \' s faner';
		var L_enImages='Aktiver brugerdefineret player / ordens billede-system';
		var L_disPackageCounters='Vis pakken tζllere';
		var L_disID='Vis ID fra hver eneste spiller under hans stats';
		var L_disHeal='Vis HEALING STATS fra hver eneste spiller under hans stats';
		var L_disTrainingChages='Vis basics og stat \'s stψrste forandring, nεr du trζner';
		var L_enHighlight='Fremhζv items, du kan kψbe i forretninger';
		var L_enStyleFixes='Anvend style rettelser';
		var L_speedSettings='hastighedsindstillinger';
		var L_stopPulling='Stop trζkke info, nεr siden belastninger (mulighed for langsomme forbindelser)';
		var L_willStop='Denne mulighed vil <font color="red"><b>stoppe</b></font>';
		var L_customCursor='Vζlg en brugerdefineret markψr';
		var L_Save='Gem';
		var L_AboutUs='om os';
		var L_Settings='indstillinger';
		var L_donateTitle='Donere til Gladiatus Crazy Add On';
		var L_donateText='Tak for os og ogsε hjζlpe os ved at donere nogle penge i vores PayPal-konto. Ved at donere til vores konto du hjζlpe os med at arbejde videre med denne tilfψjelse, som betyder flere opdateringer, nye funktioner og ingen bugs! Klik pε knappen for at stψtte os';
		var L_description='Gladiatus Crazy Add On er et gratis add on, der hjζlper dig med Gladiatus gennem de mange features det giver. Den bruger faktisk bedre info, at spillet serveren giver til din browser. Hav det sjovt med det og nyd jeres kampe!';
		var L_aboutTitle='Om Gladiatus Crazy Add On';
		var L_descriptionTitle='Beskrivelse';
		var L_Programmers='programmψrer';
		var L_Translators='oversζttere';
		var L_Hostpage='Hostpage';
		var L_ContactUs='Kontakt os';
		var L_Contact1='via e-mail pε Apo59m@gmail.com eller GreatApo@gmail.com';
		var L_Contact2='med besked pε vores spillere i den grζske servere (GreatApo pε S1 og DarkThanos pε s2) eller fransk server (djor ved s?)';
		var L_Contact3='eller fra de 3 εbne emner pε <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank"> grζsk </ a>, <a target = "_blank "href =" http://board.gladiatus.fr/index.php?page=Thread&threadID=37368 "> Fransk </ a> og <a target =" _blank "href =" http://board. gladiatus.us / index.php? page = Thread & threadid = 15543 "> USA </ a> forum';
		var L_thanksTo='Mange tak til';
		var L_MonsterHunters='Monster Stats / navn jζgere';
		var L_ItemHunters='Item jζgere';
		var L_HideGoldInAuction='Farve / Fremhζv input, hvis jeg kan sζlge varen til den handlende til samme pris end tilbuddet';
		var L_HideGoldInAuction='Farve / Fremhζv input, hvis jeg kan sζlge varen til den handlende til samme pris end tilbuddet';
		var L_guildSafeChanges='Aktiver Guild sikker ζndringer';
		var L_guildMedicChanges='Vis mere info pε Medicinsk center';
		var L_foodBackColor='Rψd baggrund for de fψdevarer, som giver mere liv punkter, som er nψdvendigt (i oversigt)';
		var L_packageAlertOpt='Informer mig, hvis mine pakker er ved at udlψbe (12 timer fψr)';
		var L_bugSettings='Bug Indstillinger';
		var L_showBugReports='Vis fejlrapporter';
		var L_autoReportBugs='Automatisk rapportere fejl til server';
		var L_showNewMessages='Vis nye beskeder';
		var L_MorePriceInfoInAuction='Toon meer prijs info';
		var L_CheckAffordInAuction='Toon me of het item gekocht kan worden(with &#10003; / &#10007;)';
		var L_allFilterAlert='Toon een bevestegingsvak bij de veilings zoekfunctie als "Voorwerptype" is "Alle"';
		var L_BetterLife='Betere levenspunten overzicht';
		var L_fightReminder='Gevechts herinnering';
		//v2.6.0
		var L_sentQuickMessageBox='Send a quick guild message';
		var L_send='Send';
		var L_merchants='Merchants';
		var L_QuestsInfo='Quests Info';
		var L_Takenquests='Taken quests';
		var L_Completedquests='Completed quests';
		var L_Failedquests='Failed quests';
		var L_InactiveQuests='Inactive Quests';
		var L_Workquests='Work quests';
		var L_Itemsquests='Items quests';
		var L_Expeditionquests='Expedition quests';
		var L_Dungeonquests='Dungeon quests';
		var L_Combatquests='Combat quests';
		var L_Arenaquests='Arena quests';
		var L_Turmaquests='Turma quests';
		var L_DisplayQuickMessageBox='Display quick guild message box';
		var L_DisplayDealerTimer='Display the merchants timer (goods renew)';
		var L_titleGenerate='Generate Signature Image';
		var L_clickToGenerate='Click the "Generate" button to generate an image with your stats!';
		var L_generate='Generate';
		var L_saveOnline='Save online';
		var L_uploadingImage='Uploading image to server';
		var L_searchUrl='Searching for url';
		var L_imageUrl='Image url';
		var L_imageNotFound='Image not found!';
		//v2.6.1
		var L_guildLife='Guild Life';
		var L_addAll='+ All';
		var L_donateAll='Donate All';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Done!';
		var L_ManageMercenaries='Manage Mercenaries';
		var L_name='Name';
		var L_protect='Protect';
		var L_leave='Leave';
		var L_selected='Selected';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'it':
		//Buttons
		var L_guildMailTitle='Scriviun messaggio per la corporazione';
		var L_guildMedicTitle='Vai all Villa Medici';
		var L_guildMarketTitle='Vai al mercato della corporazione';
		var L_guildStorageTitle='Vai al Magazzino';
		var L_staticsTitle='Le mie statistiche';
		var L_guildSafeTitle='Vai alla banca';
		var L_guildWarTitle='Vai all sala del Maestro Guerra';
		var L_guildJailTitle='Vai al negozio X';
		var L_guildLibraryTitle='Vai alla biblioteca';
		//Alerts
		var L_sure='Sei Sicuro?';
		var L_weaponAlert='Tu sei <font color="red">not</font> senza arma <font color="red">!</font>';
		var L_newMail='Hai un messaggio <font color="yellow">new</font> nel forum <font color="yellow">!</font>';
		var L_Full='Pieno';
		var L_New='NUOVO';
		var L_newsAlert='Ce un messaggio <font color="yellow">new</font> al GCA news<font color="yellow">!</font>';
		var L_PackagesWillExpire='I tuoi Pachetti scadranno fra';
		var L_hours='ore';
		//Player/Guild image
		var L_changePlayerImage='Cambia immagine del giocatore';
		var L_Overfloated='La descrizione é troppo grande';
		var L_plImageWillBeLost='L\'immagine del giocatore sarà persa e non salvata';
		var L_plDecriptionWillBeCut='La descrizione sarà ridimenzionata per farla entrare nel profilo ';
		var L_defImages='Mostra imagine default';
		var L_imgMadeFrom='Immagini sono state create da';
		var L_changeGuildImage='Cambia immagine della corporazione';
		var L_gImageWillBeLost='Immagine della corporzione sarà persa e non salvata';
		var L_gDescrtipionWillBeCut='La sescrizione sarà ridimenzionata per farla entrare nel profilo della corporzione';
		//Training
		var L_spent='speso';
		var L_SimOfTraining = 'Calcolatrice dell\'allenamento';
		var L_Stat = 'Statistiche';
		var L_From = 'Da';
		var L_To = 'a';
		var L_Cost = 'Costo';
		var L_TrainingCampLevel = 'Livello del terreno d\'allenamento';
		var L_Reduction ='Riduzione:';
		var L_TotalCost = 'Costo totale:';
		var L_Calculate = 'Calcola';
		var L_TotalCostTitle = 'Metti le mie statistiche nella colonna a sinistra';
		var L_CalculateTitle = 'Calcola il costo di tutte le mie statistiche';
		//Simulator
		var L_Simulator='Simulatore';
		var L_arena='ARENA';
		var L_Battles='Battaglie';
		var L_Won='Vinte';
		var L_Lost='Perse';
		var L_Draws='Pareggi';
		var L_Damage='Danno';
		var L_myAvDamage='Il tuo danno medio';
		var L_hisAvDamage='Danno medio dell\'avversario';
		var L_Life='Punti Vita';
		var L_myRemLife='Punti Vita rimasti';
		var L_hisRemLife='Punti vita rimasti dell\'avversario';
		var L_trainingSim='Simulatore';
		var L_playerA='Giocatore A';
		var L_playerB='Giocatore B';
		var L_selectMethod='Metodo di selezionamento';
		var L_selectEnemy='Seleziona Nemico';
		var L_byName='Cerca Giocatore col nome ';
		var L_byID='Cerca Giocatore con  l\'ID';
		var L_go='VIA!';
		var L_winnigChance='Possibilità di vincere';
		var L_PlayerAAvDamage='Danno medio del giocatore A';
		var L_PlayerBAvDamage='Danno medio del giocatore B';
		var L_Results='Risultati';
		var L_ClearAll='Cancella';
		var L_playerNotFound='Giocatore non trovato';
		var L_searchData='Cercasi dati...';
		var L_noStats='Niente statistiche per questo mostro';
		var L_thisIsLocation='Questo é un posto';
		//Guild's storage info
		var L_StorageInfo='Informazioni Magazzino';
		var L_itemNum='Numero di oggetti nel magazzino';
		var L_TotalValue='Valore Totale';
		var L_currentLife='Attuale totale di punti vita';
		var L_lostLife='Punti vita persi';
		var L_healLife='Punti vita rigenerati';
		var L_afterLife='Punti vita dopo il rigeneramento';
		var L_findGold='Trova oro';
		//Auction
		var L_bidNum='Numero di offerte';
		var L_Items='Oggetti';
		var L_selectItem='Selziona Oggetto';
		var L_Type='Tipo';
		var L_selectType='Seleziona suffisso';
		var L_Clear='Cancella';
		var L_veryShort='Molto Cortat';
		var L_anunGuild='Annuncia alla corporazione';
		var L_MessageWasSent='Messagio é stato mandato';
		var L_minDamage='Minimo danno massi,o';
		var L_weaponsFound='Armi trovate';
		var L_improvementsFound='Miglioramenti Trovati';
		var L_itemsFound='Oggetti Trovati';
		var L_select='Seleziona';
		var L_hideGoldHere='Quest\'oggetto é un salvaoro';
		var L_priceValue='Prezzo=Valore';
		//Online Players
		var L_OnlinePlayers='Giocatori Online';
		var L_guildPlayers='Corporati Online';
		var L_familyPlayers='Membri della famiglia online';
		var L_noOnlinePlayer='Nessun giocatore é online';
		var L_sentMessage='Messaggio mandato';
		//Packages
		var L_gold='Oro';
		var L_Packages='Pacchetti';
		var L_invItems='Oggetti dell\'inventario';
		var L_packedValue='Valore dei pacchetti';
		var L_invValue='Valore degli oggetti nell\'inventario';
		var L_total='Totale';
		var L_PackedGold='Oro pacchettato';
		var L_totalGold='Totale oro guadagnato';
		var L_totalItemValue='Totale valore degli oggetti';
		//Chat
		var L_Username='Username';
		var L_Country='Paese';
		var L_GuildChat='Chat della corporazione';
		var L_CountryChat='Chat del paese';
		var L_GlobalChat='Chat globale';
		//Other
		var L_checkAll='Seleziona tutti';
		var L_ID='ID del giocatore';
		var L_ratioTitle='Proporzione Cibo | Proporzione costo';
		var L_noGuildText='Non hai una corporation.<br>Se ne hai ulna per favor vai <a href="'+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+'">quà</a> Così che le tue statistiche possono essere aggiornate';
		//Settings
		var L_GCASettings='Impostazioni Gladiatus Crazy Add On';
		var L_HeaderSettings='Impostazioni dell\'intestamento';
		var L_DisplayLife='Mostra sbarra vita sull\'intestamento';
		var L_DisplayLifePercent='Mostra percentuale e numero di punti vita senza il passaggio del mouse';
		var L_DisplayLinkButtons='Mostra bottoni link sull\'intestamento';
		var L_DisplayAuctionStatus='Mostra stato dell\'asta sull\'intestamento';
		var L_DisplayMerchantStatus='Aggiungi l\'asta dei mercenari nell\'intestamento';
		var L_DisplayOnlinePlayersButton='Mostra il bottone che ti fa vedere i giocatori online sull\'intestamento';
		var L_DisplayLinkBox='Mostra la scatola dei link a destra della pagina';
		var L_TimersSettings='Impostazioni dei timer';
		var L_DisplayLastBeingAttacked='Mostra il tempo da quando l\'ultima persona ti ha attacato';
		var L_DisplayLastBeingAttacked2='Mostra il tempo da quando l\'ultima persona ti ha attacato nel Circus Turma';
		var L_AuctionSettings='Impostazioni dell\'asta';
		var L_FillAuctionPrices='Aggiungi il prezzo degli oggetti nella scatola dove metti la tua offerta';
		var L_ChangeItemsBgColor='Cambia lo sfondo degli oggetti';
		var L_AuctionMoreItemsLavels='Mostra più livelli nella ricerca tramite i livelli';
		var L_DisplayItemNumAndBids='Mostra il numero di oggetti e numero di offerte';
		var L_DisplayItemList='Mostra la lista di prefissi al mercato e all\'asta';
		var L_ExpandAuctionTable3='Espandi l\'asta (3 oggetti per ogni riga invece di 2)';
		var L_SimulatorSettings='SImpostazioni del simulatore';
		var L_enSimulator='Mostra simulatore PvP sul profilo di ogni giocatore';
		var L_setFightNum='Stabilisci il numero di battaglie simulate';
		var L_maximum='Massimo';
		var L_guildSettings='Impostazioni corporazione e Mercato';
		var L_guildStoreInfo='Mostra informazioni del magazzino';
		var L_moreGuildStats='Mostra statistiche extra per le corporazioni nella lista della sala del maestro di guerra';
		var L_monsterSimulator='Mostra il simulatore nel campo d\'allenamento';
		var L_gmailChanges='Consenti cambi per i messaggi della corporazione';
		var L_ratioOpt='Mostra la proporzione (Cibo e Prezzo) di ogni oggetto nel mercato';
		var L_enPriceRatio='Consenti la proporzione prezzo(Non é molto precisa)';
		var L_alertSettings='Impostazioni avvertenze';
		var L_immedBuy='Mostra la confermazione per quando compare un oggetto all\'asta usando l\'opzione compra subito';
		var L_reduceTimeEx='Mostra la confermazione quando usi un rubino per fare una spedizione';
		var L_questOpt='Mostra se poi accettare un nuovo incarico oppure quanto tempo rimane finché ne puoi accettare.';
		var L_forumMessageOpt='Informami se ho un nuovo messagio sul forum (Con un [ ! ] accanto al link per il forum)';
		var L_weaponAlertOpt='Informami se non ho un arma equipaggiata (con un [ ! ] accanto al link del riepilogo)';
		var L_otherSettings='Altre impostazioni';
		var L_msgchangesOpt='Consenti cambio dei messaggi';
		var L_enBBCODE='Consenti BBCODE nei messaggi';
		var L_enChat='Consenti Chat (dell Corporazione, del paese, e globale)';
		var L_enRememberTabs='Ricorda la pagine dell\'inventario e dei mercanti';
		var L_enImages='Permetti l\'uso delle immagini della corporazione e del giocatore';
		var L_disPackageCounters='Mostra contatori dei pacchetti';
		var L_disID='Mostra l\'ID del giocatore sotto le sue statistiche';
		var L_disHeal='Mostra la guarigione di ogni giocatore sotto le sue statistiche';
		var L_disTrainingChages=' Mostra il massimo e la base di una statistica quando si ci allena';
		var L_enHighlight='Evidenza oggetti che puoi comprare ai mercanti';
		var L_enStyleFixes='Applicare cambi allo stile';
		var L_speedSettings='Impostazioni per la velocità dell\'add-on';
		var L_stopPulling='Smetti di scaricare data quando la pagina é scaricata (opzione per connesioni lente)';
		var L_willStop='Questa opzione <font color="red"><b>fermerà</b></font>';
		var L_customCursor='Scegli cursore modificato';
		var L_Save='Salva';
		var L_AboutUs='Su di noi';
		var L_Settings='Impostazioni';
		var L_donateTitle='Dona a Gladiatus Crazy Add On';
		var L_donateText='Ringraziaci facendo una donazione al nostro PayPal account. Quando doni, suppporti questo progetto, e quindi potremmo continuare a lavorarci. Questo vuol dire più update, nuove funzioni e niente bug. Premi il bottone supportaci.';
		var L_description='Gladiatus Crazy Add On e un add on gratis che ti auita a migliorare la esperienza di gioco tramite le funzioni dell\' add on. Ti da più informzaione che quello che quello che ti da il server al browser. Divertiti e buon combattimento!';
		var L_aboutTitle='Informazioni su Gladiatus Crazy Add on';
		var L_descriptionTitle='Descrizione';
		var L_Programmers='Programmatori';
		var L_Translators='Traduttori';
		var L_Hostpage='Pagine che ci ospita';
		var L_ContactUs='Contattaci via';
		var L_Contact1='e-mail a Apo59m@gmail.com or GreatApo@gmail.com';
		var L_Contact2='oppure con un messaggio ai nostri giocatori nei server greci (GreatApo nel server1 and DarkThanos nel server 2) oppure nei server francesi (djor at s?)';
		var L_Contact3='Oppure nei tre thread aperti nei forum <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Greci</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">Francesi</a> e <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">Americani</a>';
		var L_thanksTo='Mille grazie a';
		var L_MonsterHunters='Persone che hanno aitutato a torvare le statistiche e nomi dei mostri';
		var L_ItemHunters='Persone che hanno aiutato a trovare i nomi dei oggetti';
		var L_HideGoldInAuction='Evidenza la scatola del prezzo se l\'oggetto é un salvaoro';
		var L_HideGoldInAuction='Evidenza la scatola del prezzo se l\'oggetto é un salvaoro';
		var L_guildSafeChanges='Consenti le modificazioni nella banca';
		var L_guildMedicChanges='Mostra più informazioni nella Villa Medici';
		var L_foodBackColor='Sfondo rosso per il cibo che ti guarisce più punti che ti servono (solo nel riepilogo)';
		var L_packageAlertOpt='Informami se i miei pacchetti scadono entro 12 ore';
		var L_bugSettings='Impostazioni bug';
		var L_showBugReports='Mostra rapporto bug';
		var L_autoReportBugs='Segnala automaticamente i bug al server';
		var L_showNewMessages='Mostra i nuovi messaggi';
		var L_MorePriceInfoInAuction='Mostra piu informazioni sui prezzi (nell\'asta)';
		var L_CheckAffordInAuction='Mostra se pui fare un\'offerta su on ogetto (con &#10003; / &#10007;)';
		var L_allFilterAlert='Mostra la scatola di conferma quando fai una ricerca all\'asta e il "Tipo di oggetto" é messo a "tutti"';
		//v2.6.0
		var L_sentQuickMessageBox='Scrivi un messaggio veloce per la corporazione';
		var L_send='Manda';
		var L_merchants='Mercanti';	
		var L_QuestsInfo='Informazioni incarichi';
		var L_Takenquests='Incarichi accettati';
		var L_Completedquests='Incarichi finiti';
		var L_Failedquests='Incarichi falliti';
		var L_InactiveQuests='Incarichi inattivi';
		var L_Workquests='Incarichi lavorativi';
		var L_Itemsquests='Ricerca di oggetti';
		var L_Expeditionquests='Incarichi delle spedizioni';
		var L_Dungeonquests='Incarichi nelle segrete';
		var L_Combatquests='Incarichi di combattimento';
		var L_Arenaquests='Incarichi nell\'arena';
		var L_Turmaquests='Incarichi nel turma';	
		var L_DisplayQuickMessageBox='Mostra scatola per scrivere un messaggio veloce alla corporazione';
		var L_DisplayDealerTimer='Mostra conto alla rovescia fino a che i mercanti ricevono le nuove merci';
		var L_titleGenerate='Genera immaggine per la firma nel forum';
		var L_clickToGenerate='Premi il bottone "genera" per generare un\'immaggine con tutte le tue statistiche';
		var L_saveOnline='Salva online';
		var L_uploadingImage='Caricamento sul server';
		var L_searchUrl='Cercando url';
		var L_imageUrl='url dell\'immaggine';
		var L_imageNotFound='Immaggine non trovata!';
		var L_calculateGuildUpgradeTitle='Calcola l\'oro per ogni giocatore in relazione al livello';
		var L_Include='Includi';
		var L_FixedGold='Oro fissato';
		var L_GoldPerPlayer='Oro per giocatore';
		var L_TargetGold='Obiettivo';
		var L_GoldInBank='Oro nella banca';
		var L_notCalculated='non calcolato';
		var L_Difference='Differenza';
		var L_Attacks='Attacchi';
		var L_Defences='Difese';
		var L_Friendly='Protezione';
		var L_GoldLimit='Limite oro';
		//v2.6.1
		var L_guildLife='Vita della Corp';
		var L_addAll='+ Tutti';
		var L_donateAll='Dona tutto';
		var L_visiteYourGuildsMemberPage='Per mandare un messaggio alla corporazione, devi prime salvare gli ID dei membri della tua corporazione. Lo vuoi fare ora?';
		var L_Done='Fatto!!';
		var L_ManageMercenaries='Gestisci Mercenari';
		var L_name='Nome';
		var L_protect='Proteggi';
		var L_leave='Lascia';
		var L_selected='Selezionati';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'pl':
		var L_guildMailTitle='Napisz wiadomość do gildii';
		var L_guildMedicTitle='Villa Medici';
		var L_guildMarketTitle='Rynek Gildii';
		var L_guildStorageTitle='Magazyn';
		var L_staticsTitle='Statystyki';
		var L_guildSafeTitle='Bank';
		var L_guildWarTitle='Wojenna Hala Sław';
		var L_guildJailTitle='Negotium X';
		var L_guildLibraryTitle='Biblioteka';
		//alert/message
		var L_sure='Jesteś pewien ?';
		var L_weaponAlert='<font color="red">Nie</font> nosisz broni<font color="red">!</font>';
		var L_newMail='Masz <font color="yellow">nową</font> wiadomość<font color="yellow">!</font>';
		var L_Full='Pełny';
		var L_New='Nowe';
		var L_newsAlert='To jest <font color="yellow">nowa</font> wiadomość na GCA News<font color="yellow">!</font>';
		var L_PackagesWillExpire='Paczki wkrótce się wypakują';
		var L_hours='godzin';
		//custom player/guild image
		var L_changePlayerImage='Zmień zdjęcie gracza';
		var L_Overfloated='Overfloated';
		var L_plImageWillBeLost='Zdjęcie gracza zostanie utracone i nie zapisane';
		var L_plDecriptionWillBeCut='Opis graczy będzie obcinany';
		var L_defImages='Pokaż domyślne obrazy';
		var L_imgMadeFrom='Obraz został wykonany';
		var L_changeGuildImage='Zmień obraz Gildii';
		var L_gImageWillBeLost='Obraz gildii zostanie utracony i nie zapisany';
		var L_gDescrtipionWillBeCut='Opis gildii będzie obcinany';
		//Training
		var L_spent='potrzeba';
		var L_SimOfTraining = 'Symulator trenowania';
		var L_Stat = 'Statystyki';
		var L_From = 'Z';
		var L_To = 'Do';
		var L_Cost = 'Koszt';
		var L_TrainingCampLevel = 'Level Pola Treningowego';
		var L_Reduction ='Oszczędzasz:';
		var L_TotalCost = 'Całkowity koszt:';
		var L_Calculate = 'Oblicz';
		var L_TotalCostTitle = 'Umieść moje statystyki w lewej kolumnie';
		var L_CalculateTitle = 'Oblicz koszt całego treningu';
		//Simulator
		var L_Simulator='Symulator';
		var L_arena='ARENA';
		var L_Battles='Walki';
		var L_Won='Wygrane';
		var L_Lost='Przegrane';
		var L_Draws='Remis';
		var L_Damage='Obrażenia';
		var L_myAvDamage='Twoja średnia obrażeń';
		var L_hisAvDamage='Średnia obrażeń przeciwnika';
		var L_Life='Życie';
		var L_myRemLife='Zostało Ci życia';
		var L_hisRemLife='Zostało przeciwnikowi życia';
		var L_trainingSim='Symulator treningu';
		var L_playerA='Gracz A';
		var L_playerB='Gracz B';
		var L_selectMethod='Wybierz metode';
		var L_selectEnemy='Wybierz przeciwnika';
		var L_byName='Nazwa przeciwnika';
		var L_byID='ID przeciwnika';
		var L_go='GO!';
		var L_winnigChance='Szansa na zwycięstwo';
		var L_PlayerAAvDamage='Średnia obrażenia gracza A';
		var L_PlayerBAvDamage='Średnie obrażenia gracza B';
		var L_Results='Wynik';
		var L_ClearAll='Wyczyść wszystko';
		var L_playerNotFound='nie znaleziona gracza';
		var L_searchData='wyszukiwanie danych...';
		var L_noStats='Brak statystyk';
		var L_thisIsLocation='To jest lokalizacja';
		//Guild's storage info
		var L_StorageInfo='Magazyn info';
		var L_itemNum='Liczba itemów';
		var L_TotalValue='Całkowita wartość';
		var L_currentLife='Życia';
		var L_lostLife='pozostało życia';
		var L_healLife='Uzdrowione punkty życia';
		var L_afterLife='Życie po leczeniu';
		var L_findGold='Znajdź złoto';
		//Auction
		var L_bidNum='Liczba ofert';
		var L_Items='Itemy';
		var L_selectItem='Wybierz Item';
		var L_Type='Typ';
		var L_selectType='Wybierz Typ';
		var L_Clear='Wyczyść środek';
		var L_veryShort='Bardzo krótki';
		var L_anunGuild='Ogłoś do gildii';
		var L_MessageWasSent='Wiadomość wysłano!';
		var L_minDamage='Minimalne max-obrażenia';
		var L_weaponsFound='Znaleziono broni';
		var L_improvementsFound='Poprawa znalezionych';
		var L_itemsFound='Znaleziono itemów';
		var L_select='Wybierz';
		var L_hideGoldHere='Tu możesz schować swoje złoto';
		var L_priceValue='Cena = Wartość';
		//Online 
		var L_OnlinePlayers='Gracze Online';
		var L_guildPlayers='Gracze gildii Online';
		var L_familyPlayers='Rodzina Online';
		var L_noOnlinePlayer='Brak graczy Online';
		var L_sentMessage='Wysłano wiadomość';
		//Packages
		var L_gold='Złoto';
		var L_Packages='Paczki';
		var L_invItems='Itemów w plecaku';
		var L_packedValue='Wartość itemów w paczkach';
		var L_invValue='Wartość itemów w plecaku';
		var L_total='Całość';
		var L_PackedGold='Złota';
		var L_totalGold='Całkowite zdobyte złoto';
		var L_totalItemValue='Całkowita wartośc itemów';
		//Chat
		var L_Username='Username';
		var L_Country='Kraj';
		var L_GuildChat='Czat gildii';
		var L_CountryChat='Krajowy czat';
		var L_GlobalChat='Globalny czat';
		//Other
		var L_checkAll='Zaznacz wszystkich';
		var L_ID='ID gracza';
		var L_ratioTitle='Żywność Ratio | Cena Ratio';
		var L_noGuildText='Nie masz gildii.<br>Jeśli masz przejdż <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >tutaj</a> w celu zaktualizowania statystyk';
		var L_ReadyFor_expedition="Jesteś gotowy do walki na wyprawie.";
		var L_ReadyFor_dungeon="Jesteś gotowy do walki w lochach.";
		var L_ReadyFor_arena="Jesteś gotowy do walki na arenie.";
		var L_ReadyFor_ct="Jesteś gotowy do walki w circus turma.";
		var L_Redirect_Q="Czy chesz być tam przekierowany?";
		//Settings
		var L_GCASettings='Gladiatus Crazy Add On Ustawienia';
		var L_HeaderSettings='Ustawienia nagłówka';
		var L_DisplayLife='Wyświetlanie życia w nagłówku';
		var L_DisplayLifePercent='Wyświetl zarówno punkty życia i procent życia (po najechaniu myszką)';
		var L_DisplayLinkButtons='Wyświetl przyciski skrótów w nagłówku';
		var L_DisplayAuctionStatus='Wyświetl status aukcji w nagłówku';
		var L_DisplayMerchantStatus='Wyświetl status aukcji w niezbędniu najemnika';
		var L_DisplayOnlinePlayersButton='Wyświetl przycisk gracze online w nagłówku';
		var L_DisplayLinkBox='Wyświetla skrócone linki po prawej stronie';
		var L_TimersSettings='Ustawienia czasu';
		var L_DisplayLastBeingAttacked='Wyświetl czas od ostatniego ataku na Ciebie na arenie';
		var L_DisplayLastBeingAttacked2='Wyświetl czas od ostatniego ataku na Ciebie w Circus Turma';
		var L_AuctionSettings='Ustawienia aukcji';
		var L_FillAuctionPrices='Autouzupełnianie ceny w aukcjach';
		var L_ChangeItemsBgColor='Zmień tło pozycji (w zależności od jakości) na aukcji';
		var L_AuctionMoreItemsLavels='Więcej poziomów leveli w trakcie wyszukiwania na aukcjach';
		var L_DisplayItemNumAndBids='Wyświetl liczbę itemów i liczbę ofert na aukcji';
		var L_DisplayItemList='Wyświetl elementy listy w polu wyszukiwania aukcji i rynku';
		var L_ExpandAuctionTable3='Rozwiń tabelę aukcji (3 pozycji w każdym wierszu)';
		var L_SimulatorSettings='Ustawienia symulatora';
		var L_enSimulator='Włącz symulator PvP na profil każdego gracza';
		var L_setFightNum='Ustaw liczbę symulowanych walk';
		var L_maximum='maksimum';
		var L_guildSettings='Ustawienia Gildii i Rynku';
		var L_guildStoreInfo='Wyświetl dodatkowe informacje w magazynie';
		var L_moreGuildStats='Wyświetl więcej informacji w Wojennej Hali Sław dla wrogich gildii';
		var L_monsterSimulator='Wyświetl symulator walk w budynku Pola Treningowego';
		var L_gmailChanges='Włącz zmiany wysyłania wiadomości do gildii';
		var L_ratioOpt='Wyświetlanie "Ratio" wartości (cen żywności i) każdej pozycji na rynku';
		var L_enPriceRatio='Włącz cena "Ratio" wartości (nie jest bardzo dokładny)';
		var L_alertSettings='Ustawienia alarmów';
		var L_immedBuy='Wyświetlić okno potwierdzenia, gdy natychmiast kupić przedmiot z aukcji';
		var L_reduceTimeEx='Wyświetl okno potwierdzenia, gdy płacisz rubiny do wyprawy';
		var L_questOpt='Powiadom mnie, jeśli mam nowe wyszukiwanie lub wyświetl pozostały czas';
		var L_forumMessageOpt='Powiadom mnie, jeśli mam nową wiadomość forum';
		var L_weaponAlertOpt='Powiadom mnie, jeśli i nie noszą broni';
		var L_otherSettings='Pozostałe ustawienia';
		var L_msgchangesOpt='Włącz zmiane wyglądu wiadomości';
		var L_enBBCODE='Włącz BBCODE w wiadomościach';
		var L_enChat='Włącz czat (Gildia, Kraj i Globalny)';
		var L_enRememberTabs='Pamiętaj, ekwipunku i karty kupca';
		var L_enImages='Włącz niestandardowe gracza / gildii obraz systemu';
		var L_disPackageCounters='Wyświetl licznik paczek';
		var L_disID='Wyświetl ID gracza pod jego statystykami';
		var L_disHeal='Wyświetl życie gracza pod jego statystykami';
		var L_disTrainingChages='Wyświetl zmiany maksymalne statów podczas szkolenia';
		var L_enHighlight='Zaznacz itemy, które można kupić u handlarza';
		var L_enStyleFixes='Zastosuj poprawki stylu';
		var L_speedSettings='Szybkie ustawienia';
		var L_stopPulling='Przestań ciągnąć informacje po załadowaniu strony (opcja dla wolnych połączeń)';
		var L_willStop='Ta opcja będzie<font color="red"><b>stop</b></font>';
		var L_customCursor='Wybierz dowolny kursor';
		var L_Save='Zapisz';
		var L_AboutUs='O nas';
		var L_Settings='Ustawienia';
		var L_donateTitle='Dotacje na Gladiatus Crazy Add On';
		var L_donateText='Pomóż nam przekazując pieniądze na nasze konto PayPal.Przekazując środki na nasze konto możemy kontynłować pracę nad tym projektem, co oznacza więcej aktualizacji, nowe funkcje i brak błędów. Kliknij przycisk aby nas wspierać ';
		var L_description='Gladiatus Crazy Add On jest darmowym dodatkiem, który pomoaga w Gladiatusie poprzez wiele dodatkowych funkcji oraz licznę bardziej rozbudowane statystyki. Bawcie się dobrze i cieszcie się walkami!';
		var L_aboutTitle='O Gladiatus Crazy Add On';
		var L_descriptionTitle='Opis';
		var L_Programmers='Programiści';
		var L_Translators='Tłumacze';
		var L_Hostpage='Hostpage';
		var L_ContactUs='Kontakt z nami';
		var L_Contact1='e-mail do Apo59m@gmail.com lub GreatApo@gmail.com';
		var L_Contact2='Z wiadomościa dla naszych graczy na greckim serwerze (GreatApo na s1 i DarkThanos na s2) Lub francuski serwer (djor na s?)';
		var L_Contact3='lub z trzech otwartych tematów na <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Grecki</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">Francuski</a> i <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a> forum';
		var L_thanksTo='Serdeczne podziękowania dla';
		var L_MonsterHunters='Statystyki potworów/nazwy myśliwych';
		var L_ItemHunters='Item myśliwych';
		var L_HideGoldInAuction='Kolor podświetlenia wejścia, czy mogę sprzedać przedmiot do kupca w tej samej cenie co cena ofertowa';
		var L_HideGoldInAuction='Kolor podświetlenia wejścia, czy mogę sprzedać przedmiot do kupca w tej samej cenie co cena ofertowa';
		var L_guildSafeChanges='Włącz gildii bezpieczne zmiany';
		var L_guildMedicChanges='Pokaż więcej info dla Vella Medici';
		var L_foodBackColor='Czerwone tło dla produktów spożywczych, które daje więcej punktów życia';
		var L_packageAlertOpt='Powiadom mnie, jeśli paczki mają utracić ważność (12 godziny przed)';
		var L_bugSettings='Ustawienia błędów';
		var L_showBugReports='Pokaż raport błędów';
		var L_autoReportBugs='Automatyczne zgłaszanie błędów na serwer';
		var L_showNewMessages='Pokaż nową wiadomość';
		var L_MorePriceInfoInAuction='Pokaż więcej cennych informacji';
		var L_CheckAffordInAuction='Pokaż jeśli item można kupić (z &#10003; / &#10007;)';
		var L_allFilterAlert='Wyświetlić okno potwierdzenia na przeszukiwanie aukcji gdy "Typ obiektu" jest "Wszystko"';
		var L_BetterLife='Lepszy widok życia';
		var L_fightReminder='Przypomnienie walki';
		//v2.6.0
		var L_sentQuickMessageBox='Wyślij krótką wiadomość do gildii';
		var L_send='Wysłano';
		var L_merchants='Handlarze';
		var L_QuestsInfo='Info o misjach';
		var L_Takenquests='Wybrane zadania';
		var L_Completedquests='Zrealizowane zadania';
		var L_Failedquests='Niewykonane zadania';
		var L_InactiveQuests='Możliwe zadania';
		var L_Workquests='Zadań pracy';
		var L_Itemsquests='Elementy zadań';
		var L_Expeditionquests='Zadań wypraw';
		var L_Dungeonquests='Zadań lochów';
		var L_Combatquests='Zadania walk';
		var L_Arenaquests='Zadania Arena';
		var L_Turmaquests='Zadania Turma';
		var L_DisplayQuickMessageBox='Wyświetl szybkie okno komunikatu gildii';
		var L_DisplayDealerTimer='Wyświetl zegar kupców (towary do odnowienia)';
		var L_titleGenerate='Generowanie obrazu podpisu';
		var L_clickToGenerate='Kliknij przycisk "Generuj", aby wygenerować obraz z statystyki!';
		var L_generate='Generowanie';
		var L_saveOnline='Zapisz on-line';
		var L_uploadingImage='Przesyłanie obrazu na serwer';
		var L_searchUrl='Wyszukiwanie url';
		var L_imageUrl='Adres obrazka';
		var L_imageNotFound='Nie znaleziono obrazka!';
		var L_calculateGuildUpgradeTitle='Oblicz ilośc złota gracza na levelu';
		var L_Include='Wliczany';
		var L_FixedGold='Wpłaci złota';
		var L_GoldPerPlayer='Złoto na gracza';
		var L_TargetGold='Potrzeba złota';
		var L_GoldInBank='Złota w banku';
		var L_notCalculated='niewliczane';
		var L_Difference='Różnica';
		var L_Attacks='Atak';
		var L_Defences='Obrona';
		var L_Friendly='Bloki';
		var L_GoldLimit='Limit złota';
		//v2.6.1
		var L_guildLife='Guild Life';
		var L_addAll='+ All';
		var L_donateAll='Donate All';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Done!';
		var L_ManageMercenaries='Manage Mercenaries';
		var L_name='Name';
		var L_protect='Protect';
		var L_leave='Leave';
		var L_selected='Selected';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'ir':
		var L_guildMailTitle='نوشتن ایمیل تیمی';
		var L_guildMedicTitle='رفتن به بیمارستان تیم';
		var L_guildMarketTitle='رفتن به بازار تیم';
		var L_guildStorageTitle='رفتن به انبار تیم';
		var L_staticsTitle='آمار من';
		var L_guildSafeTitle='رفتن به بانک تیم';
		var L_guildWarTitle='رفتن به عمارت رئیس جنگ';
		var L_guildJailTitle='رفتن به سیاه چال';
		var L_guildLibraryTitle='رفتن به کتابخانه';
		//Alert Messages
		var L_sure='آیا واقعا میخواهید اینکار را انجام دهید؟';
		var L_weaponAlert='شما <font color="red">بدون شمشیر</font>هستید<font color="red">!</font>';
		var L_newMail='شما <font color="yellow">یک پیغام جدید</font> از انجمن دارید<font color="yellow">!</font>';
		var L_Full='کامل';
		var L_New='جدید';
		var L_newsAlert='یک پیغام<font color="yellow">جدید</font> از طرف افزونه <font color="yellow">!</font>';
		var L_PackagesWillExpire='بسته های شما در کیف بزودی پاک خواهند شد';
		var L_hours='ساعت';
		//custom player/guild image
		var L_changePlayerImage='تغییر عکس بازیکن';
		var L_Overfloated='سایز عکس بزرگ است';
		var L_plImageWillBeLost='عکس بازیکن از بین خواهد رفت و ذخیره نمیشود';
		var L_plDecriptionWillBeCut='عکس بازیکن برای اندازه شدن باید کوچکتر شود';
		var L_defImages='نشان دادن تصویر پیشفرض';
		var L_imgMadeFrom='ساخته شده توسط';
		var L_changeGuildImage='تغییر تصویر تیم';
		var L_gImageWillBeLost='عکس تیم از بین خواهد رفت و ذخیره نمیشود';
		var L_gDescrtipionWillBeCut='عکس تیم برای اندازه شدن باید کوچکتر شود';
		//Training
		var L_spent='خرج شده';
		var L_SimOfTraining = 'شبیه ساز آموزش';
		var L_Stat = 'آمار';
		var L_From = 'از';
		var L_To = 'به';
		var L_Cost = 'هزینه';
		var L_TrainingCampLevel = 'سطح زمین تمرین تیم';
		var L_Reduction ='تخفیف:';
		var L_TotalCost = 'هزینۀ کل:';
		var L_Calculate = 'محاسبه کردن';
		var L_TotalCostTitle = 'آمار مرا در ستون سمت چپ قرار بده';
		var L_CalculateTitle = 'محاسبه کنند همه آمار ها';
		//Simulator
		var L_Simulator='شبیه ساز';
		var L_arena='میدان جنگ';
		var L_Battles='نبرد';
		var L_Won='پیروز';
		var L_Lost='بازنده';
		var L_Draws='مساوی';
		var L_Damage='خسارت';
		var L_myAvDamage='خسارت متوسط شما';
		var L_hisAvDamage='خسارت متوسط حریف';
		var L_Life='نیروی حیاتی';
		var L_myRemLife='نیروی حیاتی باقیماندۀ شما';
		var L_hisRemLife='نیروی باقیماندۀ حریف';
		var L_trainingSim='شبیه ساز نبرد';
		var L_playerA='بازیکن الف';
		var L_playerB='بازیکن ب';
		var L_selectMethod='انتخاب نوع جنگ';
		var L_selectEnemy='انتخاب دشمن';
		var L_byName='بوسیلۀ نام بازیکن';
		var L_byID='بوسیلۀ شناسه بازیکن(ID)';
		var L_go='محاسبه!';
		var L_winnigChance='شانس پیروزی';
		var L_PlayerAAvDamage=' خسارت متوسط بازیکن الف';
		var L_PlayerBAvDamage=' خسارت متوسط بازیکن ب';
		var L_Results='نتایج';
		var L_ClearAll='پاک کردن همه';
		var L_playerNotFound='بازیکن پیدا نشد!';
		var L_searchData='جستجوی اطلاعات...';
		var L_noStats='برای این آمار وجود ندارد';
		var L_thisIsLocation='این یک محل است';
		//Guild's storage info
		var L_StorageInfo='اطلاعات انبار';
		var L_itemNum='تعداد کالاها';
		var L_TotalValue='ارزش کل کالاها';
		var L_currentLife='نیروی حیاتی فعلی';
		var L_lostLife='نیروی حیاتی از دست رفته';
		var L_healLife='درمان شدن نیروی حیاتی';
		var L_afterLife='نیروی حیاتی بعد از درمان';
		var L_findGold='یافتن';
		//Auction
		var L_bidNum='تعداد پیشنهادها';
		var L_Items='کالاها';
		var L_selectItem='انتخاب کالا';
		var L_Type='کیفیت کالا';
		var L_selectType='انتخاب کیفیت کالا';
		var L_Clear='پاک کردن';
		var L_veryShort='خیلی کوتاه';
		var L_anunGuild='اعلام کردن به تیم';
		var L_MessageWasSent='پیغام ارسال شد!';
		var L_minDamage='حداقل و حداکثر خسارت شمشیر';
		var L_weaponsFound='سلاح های پیدا شده';
		var L_improvementsFound='ارتقا پیدا شد';
		var L_itemsFound='کالاهای پیدا شده';
		var L_select='انتخاب';
		var L_hideGoldHere='شما میتوانید طلای خود را اینجا پنهان کنید';
		var L_priceValue='قیمت = ارزش';
		//Online Players
		var L_OnlinePlayers='بازیکنان آنلاین';
		var L_guildPlayers='بازیکنان آنلاین تیم';
		var L_familyPlayers='بازیکنان آنلاین گروه';
		var L_noOnlinePlayer='بازیکنی آنلاین نیست';
		var L_sentMessage='ارسال پیغام';
		//Packages
		var L_gold='طلا';
		var L_Packages='کیف';
		var L_invItems='تعداد اجناس موجود در جیب';
		var L_packedValue='ارزش اجناس در کیف';
		var L_invValue='ارزش اجناس در جیب';
		var L_total='کل';
		var L_PackedGold='طلای کیف';
		var L_totalGold='کل طلاهای بدست آمده';
		var L_totalItemValue='ارزش کل کالاها';
		//Chat
		var L_Username='نام کاربری';
		var L_Country='کشور';
		var L_GuildChat='چت تیمی';
		var L_CountryChat='چت کشوری';
		var L_GlobalChat='چت جهانی';
		//Other
		var L_checkAll='انتخاب همه';
		var L_ID='شناسه بازیکن(ID)';
		var L_ratioTitle='غذا| قیمت';
		var L_noGuildText='شما تیمی ندارید.<br>If you have one please go<a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >here</a> in order your stats be updated';
		var L_ReadyFor_expedition="شما برای مبارزه در سفر آماده اید.";
		var L_ReadyFor_dungeon="شما برای مبارزه در زندان آماده اید.";
		var L_ReadyFor_arena="شما برای مبارزه در میدان جنگ آماده اید";
		var L_ReadyFor_ct="شما برای مبارزه در محل مبارزه آماده اید";
		var L_Redirect_Q="آیا میخواهید به آنجا هدایت شوید؟";
		//Settings
		var L_GCASettings='تنظیمات افزونهGladiatus Crazy';
		var L_HeaderSettings='تنظیمات سربرگ';
		var L_DisplayLife='نمایش نوار نیروی حیاتی در سربرگ';
		var L_DisplayLifePercent='نمایش مقدار نیروی حیاتی و همچنین درصد نیروی حیاتی باهم';
		var L_DisplayLinkButtons='نمایش دکمۀ لینک ها در سربرگ';
		var L_DisplayAuctionStatus='نمایش وضعیت حراجی گلادیاتور در سربرگ';
		var L_DisplayMerchantStatus='نمایش وضعیت حراجی کالاهای ضروری سرباز در سربرگ';
		var L_DisplayOnlinePlayersButton='نمایش "بازیکنان آنلاین" در سربرگ';
		var L_DisplayLinkBox='نمایش لینکدونی در سمت چپ صفحه';
		var L_TimersSettings='تنظیمات زمان سنج';
		var L_DisplayLastBeingAttacked='نمایش زمان سپری شده از آخرین حمله به شما در میدان جنگ';
		var L_DisplayLastBeingAttacked2='نمایش زمان سپری شده از آخرین حمله به شما در محل مبارزه';
		var L_AuctionSettings='تنظیمات محل حراج';
		var L_FillAuctionPrices='قیمتها بطور خودکار پر شوند';
		var L_ChangeItemsBgColor=' تغییر پس زمینه ی کالاها بر اساس کیفیت آنها';
		var L_AuctionMoreItemsLavels='نمایش لولهای بیشتر در جعبۀ جستجوی کالا';
		var L_DisplayItemNumAndBids='نمایش تعداد کالاها و تعداد پیشنهاد ها در محل حراج';
		var L_DisplayItemList='فعال کردن جستجوی پیشرفته در محل حراج و بازار';
		var L_ExpandAuctionTable3='گسترش ستون ها در محل حراج(3 کالا در هر سطر)';
		var L_SimulatorSettings='تنظیمات شبیه ساز';
		var L_enSimulator='فعال کردن شبیه ساز بر روی پروفایل هر بازیکن';
		var L_setFightNum='تنظیم تعداد ضربات';
		var L_maximum='حداکثر';
		var L_guildSettings='تنظیمات تیم و بازار';
		var L_guildStoreInfo='نمایش جعبۀ اطلاعات در انبار تیم';
		var L_moreGuildStats='نمایش آمار بیشتر در عمارت رئیس جنگ';
		var L_monsterSimulator='نمایش شبیه ساز نبرد در زمینهای تمرین تیم';
		var L_gmailChanges='فعال سازی تغییرات ایمیل تیمی';
		var L_ratioOpt='نمایش "نسبت" ارزش(غذا و قیمت) هر کالا در بازار';
		var L_enPriceRatio='(فعال کردن "نسبت قیمت به ارزش(زیاد دقیق نیست';
		var L_alertSettings='تنظیمات هشدار';
		var L_immedBuy='نمایش یک پیغام امنیتی برای زمانی که شما میخواهید "بدون واسطه" از حراجی جنسی را دریافت کنید';
		var L_reduceTimeEx='نمایش یک پیغام امنیتی،زمانی که شما میخواهید با یک یاقوت سرخ بلافاصله به جنگ "سفر" بروید';
		var L_questOpt='اگر ماموریت جدیدی فعال بود،به من اطلاع بده +نمایش مدت زمان باقیمانده برای ماموریت جدید';
		var L_forumMessageOpt='اگر پیغام جدیدی از انجمن داشتم به من اطلاع بده';
		var L_weaponAlertOpt='اگر بدون سلاح بودم به من اطلاع بده';
		var L_otherSettings='سایر تنظیمات';
		var L_msgchangesOpt='فعال کردن تغییرات پیغام';
		var L_enBBCODE='فعال کردن بی بی کد در پیغامها(BBCODE)';
		var L_enChat='فعال سازی چت(تیمی،کشوری و جهانی)';
		var L_enRememberTabs='بخاطر داشتن صفحه ی جیب شما و کارگاهها';
		var L_enImages='فعال کردن سیستم تصویر سفارشی بازیکن و تیم';
		var L_disPackageCounters='نمایش شمارنده در کیف(محاسبه کننده ارزش کالاها در کیف و جیب)';
		var L_disID='نمایش شناسه هر بازیکن زیر آمار آنها(ID)';
		var L_disHeal='نمایش آمار نیروی حیاتی هر بازیکن زیر آمار آنها';
		var L_disTrainingChages='نمایش شبیه ساز آموزش+ نمایش حداکثر تغییر آمار هنگام آموزش';
		var L_enHighlight='برجسته کردن کالاهایی که در کارگاه ها میتوانم بخرم';
		var L_enStyleFixes='اعمال تعمیرات استایل';
		var L_speedSettings='تنظیمات سرعت';
		var L_stopPulling='متوقف کردن بعضی از فعالیتهای افزونه در موقع بالا آمدن صفحه بازی(برای کانکشن های کم سرعت)';
		var L_willStop='این امکانات <font color="red"><b>غیر فعال میشود</b></font>';
		var L_customCursor='نشانه گر موس سفارشی انتخاب کنید';
		var L_Save='ذخیره کردن';
		var L_AboutUs='در مورد ما';
		var L_Settings='تنظیمات';
		var L_donateTitle='کمک کردن به افزونۀ Gladiatus Crazy Add On';
		var L_donateText='با اهدای اندکی پول به حساب پی پال ما میتوانید از ما حمایت کنید و همچنین با اینکار،شما  به ادامه ی فعالیت ما کمک خواهید کرد و این به معنی آپدیت های بیشتر برای این افزونه خواهد بود+ویژگی های جدید و بدون مشکلات! برروی دکمه زیر کلیک کنید واز ما حمایت کنید. ';
		var L_description='این افزونه،یک افزونه ی رایگان است،با ویژگی های زیادی که در بازی به شما میدهد،در واقع بااطلاعات بهتری که نسبت به سرور بازی، در مرورگر شما نمایش میدهد،به شما در بازی کمک میکند.از آن استفاده کنید و از مبارزاتتان لذت ببرید :)';
		var L_aboutTitle='در مورد افزونه Gladiatus Crazy Add On';
		var L_descriptionTitle='توصیف';
		var L_Programmers='برنامه نویسان';
		var L_Translators='مترجمین';
		var L_Hostpage='صفحه میزبان';
		var L_ContactUs='تماس با ما';
		var L_Contact1='توسط ایمیل به Apo59m@gmail.com یا GreatApo@gmail.com';
		var L_Contact2='توسط پیغام بازیکنانِ سرورهای یونانی به ما (GreatApo از s1 و DarkThanos از s2) یا french server (djor at s?)';
		var L_Contact3='یا توسط سه تاپیک فعال در انجمنهای <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">یونان</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">فرانسه</a> و <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">آمریکا</a>';
		var L_thanksTo='با تشکر ویژه از';
		var L_MonsterHunters='آمار رئیس ها / نام شکارچیان';
		var L_ItemHunters='وسیله های شکارچیان';
		var L_HideGoldInAuction='برجسته شدن وسیله هایی که در حراجی میتوان به قیمت ارزش خرید(با:شما میتوانید طلای خود را اینجا پنهان کنید)';
		var L_HideGoldInAuction='برجسته شدن وسیله هایی که در حراجی میتوان به قیمت ارزش خرید(با:شما میتوانید طلای خود را اینجا پنهان کنید)';
		var L_guildSafeChanges='فعال کردن تغییر تیمیِ امن';
		var L_guildMedicChanges='نمایش اطلاعات بیشتر در بیمارستان تیم';
		var L_foodBackColor='پس زمینه ی قرمز برای غذاهایی(قابل استفاده)که نیروی حیاتی بیشتری از مقدار مورد نیاز را پر میکنند(در جیب شما)';
		var L_packageAlertOpt='قبل از منقضی شدن تاریخ وسائل در کیف مرا خبر کن(12 ساعت قبل)';
		var L_bugSettings='تنظیمات باگ';
		var L_showBugReports='نشان دادن باگ';
		var L_autoReportBugs='ارسال خودکار باگ به سرور';
		var L_showNewMessages='نشان دادن پیغام جدید';
		var L_MorePriceInfoInAuction='نمایش اطلاعات بیشتر در مورد قیمت';
		var L_CheckAffordInAuction='نمایش تیک وقتی میتوانم کالایی را بخرم (با  &#10003; / &#10007;)';
		var L_allFilterAlert='نمایش یک پیغام امنیتی برای جعبه جستجوی حراجی وقتی نوع کالا  روی "همه" باشد';
		var L_BetterLife='بنمایش گذاشتن بهترِ آمار نیروی حیاتی ';
		var L_fightReminder='یادآورِ مبارزه';
		//v2.6.0
		var L_sentQuickMessageBox='ارسال ایمیل تیمی سریع';
		var L_send='ارسال';
		var L_merchants='کارگاه ها';
		var L_QuestsInfo='اطلاعات ماموریت ها';
		var L_Takenquests='ماموریت های انتخاب شده';
		var L_Completedquests='ماموریت های تکمیل شده';
		var L_Failedquests='ماموریت های ناموفق';
		var L_InactiveQuests='ماموریت های غیرفعال';
		var L_Workquests='ماموریت های محل کار';
		var L_Itemsquests='ماموریت های کالا';
		var L_Expeditionquests='ماموریت های سفر';
		var L_Dungeonquests='ماموریت های زندان';
		var L_Combatquests='ماموریت های نبرد';
		var L_Arenaquests='ماموریت های میدان جنگ';
		var L_Turmaquests='ماموریت های محل مبارزه';	
		var L_DisplayQuickMessageBox='فعال کردن ارسال ایمیل تیمی سریع';
		var L_DisplayDealerTimer='فعال کردن تایمر کارگاها(رسیدن اجناس جدید)';
		var L_titleGenerate='ایجاد تصویر از آمار';
		var L_clickToGenerate='برای ایجاد عکسی از آمار خود،بر روی "ایجاد"کلیک کنید';
		var L_generate='ایجاد';
		var L_saveOnline='ذخیره کردن آنلاین';
		var L_uploadingImage='آپلود تصویر در سرور...';
		var L_searchUrl='جستجو برای آدرس';
		var L_imageUrl='آدرس تصویر';
		var L_imageNotFound='تصویر پیدا نشد!';
		var L_calculateGuildUpgradeTitle='محاسبه کننده مالیات برای هر بازیکن بر اساس لول ';
		var L_Include='انتخاب کردن';
		var L_FixedGold='طلای ثابت';
		var L_GoldPerPlayer='طلا برای هر بازیکن';
		var L_TargetGold='میزان طلایِ مورد نیاز';
		var L_GoldInBank='موجودی در بانک';
		var L_notCalculated='محاسبه نشده';
		var L_Difference='تفاوت لول';
		var L_Attacks='حمله ها';
		var L_Defences='دفاع ها';
		var L_Friendly='دوستانه';
		var L_GoldLimit='محدودیت گذاشتن برای طلا';
		//v2.6.1
		var L_guildLife='نیروی حیاتی اعضای تیم';
		var L_addAll='+همه';
		var L_donateAll='اهداءِ همه';
		var L_visiteYourGuildsMemberPage='برای ارسال ایمیل تیمی،شما ابتدا بایدشناسه های اعضای تیم خود راذخیره کنید.\nآیا میخواهید هم‌اكنون این کار را انجام دهید؟';
		var L_Done='انجام شد!';
		var L_ManageMercenaries='مدیریت سربازهای حریص';
		var L_name='نام';
		var L_protect='جلب توجه';
		var L_leave='برندار';
		var L_selected='وضعیت فعلی';
		var L_itemsAreNotSaved='مشخصاتِ کالا برای این سرباز ذخیره نشدهاست\nشما باید پروفایل این سرباز را مشاهده فرمایید.';
		var L_mercenariesAreNotSaved='مشخصاتِ سریازهای حریص ذخیره نشدهاست\nشما باید پروفایل سربازهای حریص خود را مشاهده فرمایید.';
		var L_changeAuctionCompareItems='تغییر سیستم مقایسۀ کالا؛براساس انتخاب شخصیت در حراجی،';
		var L_notWearingAnItem='کالایی بر تَن ندارید';
		var L_notWearingAMercenary='شما سرباز حریص ندارید';
		var L_setNumOfGuild='تعداد تیم ها';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'pt':
		var L_guildMailTitle='Compor mensagem de Aliança';
		var L_guildMedicTitle='Villa Medici';
		var L_guildMarketTitle='Mercado da Aliança';
		var L_guildStorageTitle='Armazém';
		var L_staticsTitle='Minhas stats';
		var L_guildSafeTitle='Banco';
		var L_guildWarTitle='Corredor do General';
		var L_guildJailTitle='Negotium X';
		var L_guildLibraryTitle='Biblioteca';
		//alert/message
		var L_sure='De certeza?';
		var L_weaponAlert='Estás <font color="red">sem</font> arma equipada<font color="red">!</font>';
		var L_newMail='Tens uma <font color="yellow">nova</font> Mensagem no forum<font color="yellow">!</font>';
		var L_Full='Cheio';
		var L_New='NOVA';
		var L_newsAlert='Isto é uma <font color="yellow">nova</font> Mensagem da GCA News<font color="yellow">!</font>';
		var L_PackagesWillExpire='Os Pacotes estão prestes a expirar';
		var L_hours='horas';
		//Custom image system
		var L_changePlayerImage='Mudar a imagem de jogador';
		var L_Overfloated='Overfloated';
		var L_plImageWillBeLost='A imagem não será guardada por exceder o tamanho'; 
		var L_plDecriptionWillBeCut='A descrição será reajustada ao espaço disponivel';
		var L_defImages='Mostrar imagens';
		var L_imgMadeFrom='As images foram criadas por';
		var L_changeGuildImage='Alterar imagem da Aliança';
		var L_gImageWillBeLost='A imagem não será guardada por exceder o tamanho';
		var L_gDescrtipionWillBeCut='A descrição será reajustada ao espaço disponivel';
		//Training
		var L_spent='gasto';
		var L_SimOfTraining = 'Simulador de treino';
		var L_Stat = 'Estatística';
		var L_From = 'De';
		var L_To = 'Para';
		var L_Cost = 'Custo';
		var L_TrainingCampLevel = 'Nível do Campos de Treino';
		var L_Reduction ='Desconto:';
		var L_TotalCost = 'Custo total:';
		var L_Calculate = 'Calcular';
		var L_TotalCostTitle = 'Inserir as minhas stats na coluna da esquerda';
		var L_CalculateTitle = 'Calcular o custo de todas as estatísticas';
		//Simulator
		var L_Simulator='Simulador';
		var L_arena='ARENA';
		var L_Battles='Batalhas';
		var L_Won='Ganhas';
		var L_Lost='Perdidas';
		var L_Draws='Empates';
		var L_Damage='Dano';
		var L_myAvDamage='O teu dano médio';
		var L_hisAvDamage='Dano médio do adversário';
		var L_Life='Vida';
		var L_myRemLife='Vida remanescente';
		var L_hisRemLife='Vida remanescente do adversário';
		var L_trainingSim='Simulador de Treino';
		var L_playerA='Jogador A';
		var L_playerB='Jogador B';
		var L_selectMethod='Escolher método';
		var L_selectEnemy='Escolher inimigo';
		var L_byName='Nome do jogador';
		var L_byID='ID de jogador';
		var L_go='SIMULAR!';
		var L_winnigChance='Probabilidade de vitória';
		var L_PlayerAAvDamage='Dano médio do jogador A';
		var L_PlayerBAvDamage='Dano médio do jogador B';
		var L_Results='Resultados';
		var L_ClearAll='Limpar tudo';
		var L_playerNotFound='Jogador não encontrado';
		var L_searchData='A pesquisar dados...';
		var L_noStats='Sem estatística disponível';
		var L_thisIsLocation='Isso é uma localização';
		//Guild's storage info
		var L_StorageInfo='Informação do Armazém';
		var L_itemNum='Número de itens';
		var L_TotalValue='Valor total';
		var L_currentLife='Pontos de vida actuais';
		var L_lostLife='Pontos de vida perdidos';
		var L_healLife='Pontos de vida regenerados';
		var L_afterLife='Vida após cura';
		var L_findGold='Encontrar Ouro';
		//Auction
		var L_bidNum='Número de licitações';
		var L_Items='Itens';
		var L_selectItem='Escolher Item';
		var L_Type='Tipo';
		var L_selectType='Procurar nome';
		var L_Clear='Apagar';
		var L_veryShort='Muito curto';
		var L_anunGuild='Anunciar à Aliança';
		var L_MessageWasSent='Mensagem enviada!';
		var L_minDamage='Valor mínimo para Dano máximo';
		var L_weaponsFound='Armas encontradas';
		var L_improvementsFound='Melhorias encontradas';
		var L_itemsFound='Itens encontrados';
		var L_select='Escolher';
		var L_hideGoldHere='Podes esconder ouro aqui';
		var L_priceValue='Preço = Valor';
		//Online Players
		var L_OnlinePlayers='Jogadores Online';
		var L_guildPlayers='Jogadores da Aliança Online';
		var L_familyPlayers='Jogadores da Família Online';
		var L_noOnlinePlayer='Nenhum jogador Online';
		var L_sentMessage='Mensagem Enviada';
		//Packages
		var L_gold='Ouro';
		var L_Packages='Pacotes';
		var L_invItems='Itens no inventário';
		var L_packedValue='Itens em pacotes\' value';
		var L_invValue='Valor dos itens no inventário';
		var L_total='Total';
		var L_PackedGold='Ouro guardado';
		var L_totalGold='Total de Ouro ganho';
		var L_totalItemValue='Valor total dos itens';
		//Chat
		var L_Username='Utilizador';
		var L_Country='País';
		var L_GuildChat='Chat da Aliança';
		var L_CountryChat='Chat de País';
		var L_GlobalChat='Chat Global';
		//Other
		var L_checkAll='Seleccionar tudo';
		var L_ID='ID do jogador';
		var L_ratioTitle='Comida Ratio | Preço Ratio';
		var L_noGuildText='Aliança não encontrada.<br>Caso estejas numa, por favor acede <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >aqui</a> para actualizar o teu estado';
		var L_ReadyFor_expedition="Estás pronto para uma batalha de Expedição.";
		var L_ReadyFor_dungeon="Estás pronto para uma batalha de Masmorra.";
		var L_ReadyFor_arena="Estás pronto para uma batalha na Arena.";
		var L_ReadyFor_ct="Estás pronto para uma batalha no Circus Turma.";
		var L_Redirect_Q="Queres ser reencaminhado para lá?";		
		//Settings
		var L_GCASettings='Definições do Gladiatus Crazy Add On';
		var L_HeaderSettings='Definições do Cabeçalho';
		var L_DisplayLife='Mostrar a barra da Vida';
		var L_DisplayLifePercent='Mostrar pontos e percentagem de Vida (sem ser preciso passar o rato)';
		var L_DisplayLinkButtons='Mostrar os botões de atalho no cabeçalho';
		var L_DisplayAuctionStatus='Mostrar o tempo do Leilão';
		var L_DisplayMerchantStatus='Adicionar o tempo do Leilão de Mercenários';
		var L_DisplayOnlinePlayersButton='Mostrar o botão "Jogadores Online" no cabeçalho';
		var L_DisplayLinkBox='Mostrar a caixa para os Atalhos, na parte superior direita da página';
		var L_TimersSettings='Definições dos Relógios';
		var L_DisplayLastBeingAttacked='Mostrar o tempo que passou desde que foste atacado na Arena';
		var L_DisplayLastBeingAttacked2='Mostrar o tempo que passou desde que foste atacado no Circus Turma';
		var L_AuctionSettings='Definições dos Leilões';
		var L_FillAuctionPrices='Preencher automaticamente a licitação mínima';
		var L_ChangeItemsBgColor='Mudar a côr do fundo dos itens (baseado na qualidade)';
		var L_AuctionMoreItemsLavels='Mostrar mais níveis na caixa de pesquisa';
		var L_DisplayItemNumAndBids='Mostrar o número de itens, e licitações, existentes';
		var L_DisplayItemList='Mostrar uma lista de pesquisa de Itens nos Leilões e no Mercado';
		var L_ExpandAuctionTable3='Expandir a tabela de Itens (3 itens por linha)';
		var L_SimulatorSettings='Definições do Simulador';
		var L_enSimulator='Activar o Simulador PvP em todos os perfis de Jogador';
		var L_setFightNum='Definir o número de Batalhas a simular';
		var L_maximum='Máximo';
		var L_guildSettings='Definições de Mercado e de Aliança';
		var L_guildStoreInfo='Mostrar caixa de informações no Armazém';
		var L_moreGuildStats='Mostrar mais stats, no Corredor do General, para as Alianças adversárias';
		var L_monsterSimulator='Mostrar o Simulador de Batalhas no Campos de Treino';
		var L_gmailChanges='Activar as alterações de mail da Aliança';
		var L_ratioOpt='Mostrar o valor de "Ratio" (comida e preço) para todos os itens no Mercado';
		var L_enPriceRatio='Activar o "Ratio" preço-valor (não é muito exacto)';
		var L_alertSettings='Definições de Alerta';
		var L_immedBuy='Mostrar caixa de confirmação para compra imediata de um item no Leilão';
		var L_reduceTimeEx='Mostrar caixa de confirmação para ir em Expedição gastando um rubi';
		var L_questOpt='Informar-me se tenho uma nova Missão disponível ou mostrar o tempo remanescente';
		var L_forumMessageOpt='Informar-me se tenho uma nova mensagem no forum (com um [ ! ] ao lado do atalho para o Forum)';
		var L_weaponAlertOpt='Informar-me se não tiver uma arma equipada (com um [ ! ] ao lado do link da Vista Geral)';
		var L_otherSettings='Outras definições';
		var L_msgchangesOpt='Activar alterações de mensagens';
		var L_enBBCODE='Activar o BBCODE nas mensagens';
		var L_enChat='Activar o Chat (Aliança, País e Global)';
		var L_enRememberTabs='Memorizar os teus TABS no inventário e nos mercadores';
		var L_enImages='Activar as imagens personalizadas de Jogador/Aliança';
		var L_disPackageCounters='Mostrar o contador de pacotes';
		var L_disID='Mostrar o ID de todos os jogadores por baixo das suas Stats';
		var L_disHeal='Mostrar a Saúde de todos os jogadores por baixo das suas Stats';
		var L_disTrainingChages='Mostrar as Stats base e máximas ao treinar';
		var L_enHighlight='Realçar os itens que podes comprar nos mercadores';
		var L_enStyleFixes='Aplicar os fixs de estilo';
		var L_speedSettings='Definições de Velocidade de Navegação';
		var L_stopPulling='Parar de retirar informação do servidor quando a página arranca (ideal para ligações lentas)';
		var L_willStop='Esta opção irá <font color="red"><b>parar</b></font>';
		var L_customCursor='Escolhe um cursor personalizado';
		var L_Save='Guardar';
		var L_AboutUs='Acerca';
		var L_Settings='Definições';
		var L_donateTitle='Doar ao projecto Gladiatus Crazy Add On';
		var L_donateText='Agradece-nos e ajuda-nos através de doações monetárias para a nossa conta PayPal. Ao doares para a nossa conta irás incentivar-nos a continuar com o nosso trabalho neste add on e, isso, implicará mais updates, novas funcionalidades e bugs corrigidos! Clica no botão para nos ajudares ';
		var L_description='Gladiatus Crazy Add On é um add on gratuito que te ajuda no jogo Gladiatus, através das suas diversas, e úteis, funcionalidades. Apresenta a informação, que o servidor do jogo disponibiliza para o teu browser, de uma forma muito melhor. Aproveita-o e diverte-te nas tuas batalhas!';
		var L_aboutTitle='Acerca do Gladiatus Crazy Add On';
		var L_descriptionTitle='Descrição';
		var L_Programmers='Programadores';
		var L_Translators='Tradutores';
		var L_Hostpage='Página oficial';
		var L_ContactUs='Contacta-nos';
		var L_Contact1='através de e-mail para Apo59m@gmail.com ou GreatApo@gmail.com';
		var L_Contact2='através de mensagem aos nossos jogadores no servidor Grego (GreatApo no S1 e DarkThanos no S2) ou no servidor Francês (djor no s?)';
		var L_Contact3='ou através dos 3 tópicos abertos nos <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Grego</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">Francês</a> e <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">EUA</a> foruns';
		var L_thanksTo='Os nossos agradecimentos para';
		var L_MonsterHunters='Caçadores de Estatísticas/Nomes dos Monstros';
		var L_ItemHunters='Caçadores de Itens';
		var L_HideGoldInAuction='Colorir/Realçar a caixa se puder vender o item aos mercadores pelo mesmo preço que a licitação mínima';
		var L_HideGoldInAuction='Colorir/Realçar a caixa se puder vender o item aos mercadores pelo mesmo preço que a licitação mínima';
		var L_guildSafeChanges='Activar as alterações seguras da Aliança';
		var L_guildMedicChanges='Mostrar mais informação na Villa Medici';
		var L_foodBackColor='Fundo a vermelho para os itens de comida que dão mais cura que o necessário';
		var L_packageAlertOpt='Informa-me se os meus pacotes forem expirar (12 horas de antecedência)';
		var L_bugSettings='Definições de Bug';
		var L_showBugReports='Mostrar os reportes de bug';
		var L_autoReportBugs='Reportar automaticamente os bugs ao servidor';
		var L_showNewMessages='Mostrar novas mensagens';
		var L_MorePriceInfoInAuction='Mostrar mais informação sobre os preços';
		var L_CheckAffordInAuction='Mostrar se o item pode ser comprado (com &#10003; / &#10007;)';
		var L_allFilterAlert='Mostrar uma caixa de confirmação quando o "Tipo de Objecto" é "Todo"';
		var L_BetterLife='Melhor vista para a Vida';
		var L_fightReminder='Lembrete de Batalhas';
		//v2.6.0
		var L_sentQuickMessageBox='Enviar uma mensagem rápida';
		var L_send='Enviar';
		var L_merchants='Mercadores';	
		var L_QuestsInfo='Info das Missões';
		var L_Takenquests='Missões aceites';
		var L_Completedquests='Missões completas';
		var L_Failedquests='Missões falhadas';
		var L_InactiveQuests='Missões inactivas';
		var L_Workquests='Missões de Trabalho';
		var L_Itemsquests='Missões de Itens';
		var L_Expeditionquests='Missões de Expedição';
		var L_Dungeonquests='Missões de Masmorra';
		var L_Combatquests='Missões de Combate';
		var L_Arenaquests='Missões da Arena';
		var L_Turmaquests='Missões do Turma';
		var L_DisplayQuickMessageBox='Mostrar a caixa de Mensagem rápida para Aliança';
		var L_DisplayDealerTimer='Mostrar o relógio dos Mercadores (renovação dos bens)';
		var L_titleGenerate='Gerar Imagem de Assinatura';
		var L_clickToGenerate='Clica no botão "Gerar" para criar uma imagem com os teus stats!';
		var L_generate='Gerar';
		var L_saveOnline='Guardar online';
		var L_uploadingImage='A fazer o Upload da imagem para o servidor';
		var L_searchUrl='A pesquisar pelo Url';
		var L_imageUrl='Url da imagem';
		var L_imageNotFound='Imagem não encontrada!';
		var L_calculateGuildUpgradeTitle='Calcular o Ouro, pelo nível do jogador, para evoluir';
		var L_Include='Incluir';
		var L_FixedGold='Ouro fixo';
		var L_GoldPerPlayer='Ouro por Jogador';
		var L_TargetGold='Objectivo de Ouro';
		var L_GoldInBank='Ouro no Banco';
		var L_notCalculated='Não calculado';
		var L_Difference='Diferença';
		var L_Attacks='Ataques';
		var L_Defences='Defesas';
		var L_Friendly='Amigável';
		var L_GoldLimit='Limite de Ouro';
		//v2.6.1
		var L_guildLife='Vida da Aliança';
		var L_addAll='+ Tudo';
		var L_donateAll='Doar tudo';
		var L_visiteYourGuildsMemberPage='Para enviar uma mensagem à Aliança, primeiro terão que ser guardados os IDs de todos os membros.\nQueres fazer isso agora?';
		var L_Done='Feito!';
		var L_ManageMercenaries='Gerir Mercenários';
		var L_name='Nome';
		var L_protect='Defender';
		var L_leave='Deixar';
		var L_selected='Escolhido';
		var L_itemsAreNotSaved='As dicas dos itens não estão activas para este personagem.\nVisita o perfil do personagem.';
		var L_mercenariesAreNotSaved='As dicas para os Mercenários não estão guardadas.\nVisita o perfil dos teus mercenários.';
		var L_changeAuctionCompareItems='Mudar as dicas dos itens equipados de acordo com a personagem escolhida'; 
		var L_notWearingAnItem='Nenhum item equipado';
		var L_notWearingAMercenary='Nenhum Mercenário em uso';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='Meu Ouro';
		var L_time='tempo'
		var L_expedition='Expedição';
		var L_turma='Turma';
		var L_dungeon='Masmorra';
		var L_titleSettings='Definições da página inicial';
		var L_enableTitle='Activar a página inicial personalizada';
		var L_showLogoTitle='Mostrar "Gladiatus" no título';
		var L_showServerTitle='Mostrar também o servidor e o país';
		var L_customTitleType='Escolher o que mais deve ser mostrado'
		var L_enableTitlePoints='Adicionar os pontos de expedição/masmorra junto ao tempo';
		var L_cancelAll='Cancelar tudo';
		var L_numberOfMyItems='Número de itens';
		var L_seeThisReport='Ver este relatório';
		var L_TopBar='Mostrar a barra de topo enquanto se baixa a barra de scroll';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'cz':
		//Shurtcut buttons
		var L_guildMailTitle='Napsat gildě';
		var L_guildMedicTitle='Jdi do gildovní vila medici';
		var L_guildMarketTitle='Jdi do gildovního tržiště';
		var L_guildStorageTitle='Jdi do gildovního skladiště';
		var L_staticsTitle='Mé staty';
		var L_guildSafeTitle='Jdi do gildovní banky';
		var L_guildWarTitle='Jdi do gildovní síně války';
		var L_guildJailTitle='Jdi do gildovního negotia';
		var L_guildLibraryTitle='Jdi do gildovní knihovny';
		//alert/message
		var L_sure='Jsi si opravdu jistý ?';
		var L_weaponAlert='Tvá zbraň <font color="red">není</font> nasazena<font color="red">!</font>';
		var L_newMail='Máš <font color="yellow">novou</font> zprávu na foru<font color="yellow">!</font>';
		var L_Full='Plno';
		var L_New='NOVÝ';
		var L_newsAlert='K přečtení <font color="yellow">nová</font> zpráva GCA News<font color="yellow">!</font>';
		var L_PackagesWillExpire='Zásilky brzy propadnou';
		var L_hours='hodiny';
		//custom player/guild image
		var L_changePlayerImage='Změň svůj obrázek';
		var L_Overfloated='Překročen limit';
		var L_plImageWillBeLost='Tvůj obrázek nebyl uložen';
		var L_plDecriptionWillBeCut='Data budou zkrácena, aby se vešla do limitu';
		var L_defImages='Ukaž předuložené obrázky';
		var L_imgMadeFrom='Obrázky vytvořil';
		var L_changeGuildImage='Změň obrázek gildy';
		var L_gImageWillBeLost='Gildovní obrázek nebyl uložen';
		var L_gDescrtipionWillBeCut='Data budou zkrácena, aby se vešla do limitu';
		//Training
		var L_spent='utraceno';
		var L_SimOfTraining = 'Simulátor cvičení';
		var L_Stat = 'Vlastnosti';
		var L_From = 'Od';
		var L_To = 'Do';
		var L_Cost = 'Cena';
		var L_TrainingCampLevel = 'Úroveň cvičiště';
		var L_Reduction ='Sleva:';
		var L_TotalCost = 'Celková cena:';
		var L_Calculate = 'Počítej';
		var L_TotalCostTitle = 'Vyplní mé vlastnosti do levého sloupce';
		var L_CalculateTitle = 'Spočítá cenu všech vlastností';
		//simulator
		var L_Simulator='Simulátor';
		var L_arena='ARENA';
		var L_Battles='Bitvy';
		var L_Won='Výhra';
		var L_Lost='Prohra';
		var L_Draws='Remízy';
		var L_Damage='Poškození';
		var L_myAvDamage='Tvé průměrné poškození';
		var L_hisAvDamage='Soupeřovo průměrné poškození';
		var L_Life='Životy';
		var L_myRemLife='Tvé zbývající životy';
		var L_hisRemLife='Soupeřovo zbývající životy';
		var L_trainingSim='Simulátor cvičení';
		var L_playerA='Hráč A';
		var L_playerB='Hráč B';
		var L_selectMethod='Vyber způsob';
		var L_selectEnemy='Vyber nepřítele';
		var L_byName='Hráč dle jména';
		var L_byID='Hráč dle ID';
		var L_go='JDI!';
		var L_winnigChance='Šance na výhru';
		var L_PlayerAAvDamage='Hráč A průměrné poškození';
		var L_PlayerBAvDamage='Hráč B průměrné poškození';
		var L_Results='Výsledek';
		var L_ClearAll='Vymaž vše';
		var L_playerNotFound='Hráč nenalezen';
		var L_searchData='Načítám...';
		var L_noStats='Žádné statistiky nenalezeny';
		var L_thisIsLocation='Tohle je lokace';
		//Guild's storage info
		var L_StorageInfo='Stav skladiště';
		var L_itemNum='Počet předmětů';
		var L_TotalValue='Celková hodnota';
		var L_currentLife='Aktuální stav životů';
		var L_lostLife='Ztráta do max.životů';
		var L_healLife='Medik vyléčí';
		var L_afterLife='Životů po léčení';
		var L_findGold='Najdi zlato';
		//Auction
		var L_bidNum='Počet nahození';
		var L_Items='Předměty';
		var L_selectItem='Vyber předmět';
		var L_Type='Druh';
		var L_selectType='Vyber druh';
		var L_Clear='Vymaž';
		var L_veryShort='Velmi krátká';
		var L_anunGuild='Oznámit gildě';
		var L_MessageWasSent='Zpráva odeslána!';
		var L_minDamage='Minimální horní poškození';
		var L_weaponsFound='Zbraní nalezeno';
		var L_improvementsFound='Zdokonalení nalezeno';
		var L_itemsFound='Předmětů nalezeno';
		var L_select='Vyber';
		var L_hideGoldHere='Sem můžeš uložit své zlato';
		var L_priceValue='Cena = hodnota';
		//Online Players
		var L_OnlinePlayers='Online hráči';
		var L_guildPlayers='Online hráči gildy';
		var L_familyPlayers='Online hráči z mé Familie';
		var L_noOnlinePlayer='Nikdo není online';
		var L_sentMessage='Poslat zprávu';
		//Packages
		var L_gold='Zlato';
		var L_Packages='Zásilky';
		var L_invItems='Předměty v inventáři';
		var L_packedValue='Hodnota zásilek';
		var L_invValue='Hodnota inventáře';
		var L_total='Celkem';
		var L_PackedGold='Zlato v zásilkách';
		var L_totalGold='Celkem získáno zlata';
		var L_totalItemValue='Celková hodnota inventáře';
		//Chat
		var L_Username='Username';
		var L_Country='Country';
		var L_GuildChat='Guild Chat';
		var L_CountryChat='Country Chat';
		var L_GlobalChat='Global Chat';
		//Other
		var L_checkAll='Všichni';
		var L_ID='Hráčovo ID';
		var L_ratioTitle='Jídlo Ratio | Cena Ratio';
		var L_noGuildText='You dont have a Guild.<br>If you have one please go <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >here</a> in order your stats be updated';
		var L_ReadyFor_expedition="Jsi připraven jít na expedici";
		var L_ReadyFor_dungeon="Jsi připraven jít do bludiště";
		var L_ReadyFor_arena="Jsi připraven jít do arény";
		var L_ReadyFor_ct="Jsi připraven jít do Cirusu Turma";
		var L_Redirect_Q="Přeješ si být přesměrován ?";	
		//Settings
		var L_GCASettings='Gladiatus Crazy Add On Settings';
		var L_HeaderSettings='Nastavení záhlaví';
		var L_DisplayLife='Zobraz životy';
		var L_DisplayLifePercent='Zobraz životy i procenta';
		var L_DisplayLinkButtons='Zobraz panel rychlé navigace';
		var L_DisplayAuctionStatus='Zobraz stav aukce';
		var L_DisplayMerchantStatus='Stav aukce a obchodníků';
		var L_DisplayOnlinePlayersButton='Zobraz Online hráče';
		var L_DisplayLinkBox='Zobraz Link Box v pravé části (šipka s rychlou navigací)';
		var L_TimersSettings='Nastavení časů';
		var L_DisplayLastBeingAttacked='Zobrazit čas od posledního napadení';
		var L_DisplayLastBeingAttacked2='Zobrazit čas od posledního napadení v Circus Turma';
		var L_AuctionSettings='Nastavení aukce';
		var L_FillAuctionPrices='Automatické vyplnění částek/nabídek v aukci';
		var L_ChangeItemsBgColor='Zobrazení podkladu u předmětu, dle jeho kvality';
		var L_AuctionMoreItemsLavels='Rozšířená hodnota -Minimální úroveň- ';
		var L_DisplayItemNumAndBids='Zobrazení počtu předmětů a počtu nabídek';
		var L_DisplayItemList='Zobrazení Item Listů ve vyhledávačích na aukci a trhu';
		var L_ExpandAuctionTable3='Zvětšit aukční stůl (3 věci na řádek)';
		var L_SimulatorSettings='Nastavení simulátoru';
		var L_enSimulator='Povolit simulátor soubojů na každém profilu';
		var L_setFightNum='Nastav počet simulovaných soubojů';
		var L_maximum='maximum';
		var L_guildSettings='Nastavení gildy a trhu';
		var L_guildStoreInfo='Zobraz info v gildovním trhu';
		var L_moreGuildStats='Načti rozšířené informace u 10 gild v Síni válek';
		var L_monsterSimulator='Zobraz Simulátor tréningu v gildovním cvičišti';
		var L_gmailChanges='Povolit změny u gildovních zpráv';
		var L_ratioOpt='Zobraz "Ratio" - poměr hodnoty u jídla na trhu';
		var L_enPriceRatio='Povolit "Ratio" - poměr hodnoty (není přesné)';
		var L_alertSettings='Nastavení varování';
		var L_immedBuy='Zobrazit potvrzovací okno při vykoupení předmětu na aukci';
		var L_reduceTimeEx='Zobrazit potvrzovací okno při kliknutí výpravy za rubíny';
		var L_questOpt='Zobrazit nový úkol, nebo zbývající čas do dalšího';
		var L_forumMessageOpt='Upozornit na příchozí zprávu na foru';
		var L_weaponAlertOpt='Upozornit že nemám nasazenou zbraň [ ! ] ';
		var L_otherSettings='Ostatní nastavení';
		var L_msgchangesOpt='Povolit změny zpráv';
		var L_enBBCODE='Povolit BBCODE ve zprávách (smajlíky apod.)';
		var L_enChat='Povolit Chat (Guild, Country and Global)';
		var L_enRememberTabs='Pamatuj poslední záložku v inventáři/ u obchodníka';
		var L_enImages='Povolit libovolné obrázky gild a hráčů';
		var L_disPackageCounters='Povolit pomocníka v zásilkách';
		var L_disID='Zobrazit ID u každého profilu na jeho konci';
		var L_disHeal='Zobrazit životy u každého hráče';
		var L_disTrainingChages='Zobrazit základ/maximum u vlastností na cvičišti';
		var L_enHighlight='Zvýrazni předměty, které mohu koupit u obchodníků';
		var L_enStyleFixes='Aplikuj opravy stylu';
		var L_speedSettings='Nastavení rychlosti';
		var L_stopPulling='Zastavit tahání informací při načítání stránky (pro pomalá připojení)';
		var L_willStop='Toto nastavení <font color="red"><b>zruší</b></font>';
		var L_customCursor='Vyber si libovolný kurzor';
		var L_Save='Ulož';
		var L_AboutUs='O nás';
		var L_Settings='Nastavení';
		var L_donateTitle='Podpořte Gladiatus Crazy Add On';
		var L_donateText='Thank us and also help us by donating some money in our PayPal account. By donating to our account you help us continue working on this add on which means more updates, new features and no bugs! Click the button to support us ';
		var L_description='Gladiatus Crazy Add On is a free add on that helps you with Gladiatus through the many features it gives. It actually uses better the info that the game server gives to your browser. Have fun with it and enjoy your fights!';
		var L_aboutTitle='O Gladiatus Crazy Add On';
		var L_descriptionTitle='Popis';
		var L_Programmers='Programátoři';
		var L_Translators='Překladatelé';
		var L_Hostpage='Hostpage';
		var L_ContactUs='Napiš nám';
		var L_Contact1='e-mail Apo59m@gmail.com nebo GreatApo@gmail.com';
		var L_Contact2='PM v řecké komunitě (GreatApo s1 a DarkThanos s2) nebo francouzská komunita (djor at s?)';
		var L_Contact3='nebo tři otevřené topic <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Greek</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">French</a> a <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a> forum';
		var L_thanksTo='Many thanks to';
		var L_MonsterHunters='Monster stats/name hunters';
		var L_ItemHunters='Item hunters';
		var L_HideGoldInAuction='Zvýrazni předměty (žlutá barva), které jsou vhodné k uložení zlatek v aukci (stejná cena nákupu/prodeje)';
		var L_HideGoldInAuction='Zvýrazni předměty (žlutá barva), které jsou vhodné k uložení zlatek v aukci (stejná cena nákupu/prodeje)';
		var L_guildSafeChanges='Povolit bezpečné změny v gildě';
		var L_guildMedicChanges='Ukázat více informací ve Vila medici';
		var L_foodBackColor='Červené pozadí u jídla, které převyšuje svojí hodnotou životů, životy potřebné k maximálnímu vyléčení';
		var L_packageAlertOpt='Informuj mne 12 hodin před propadnutím zásilky';
		var L_bugSettings='Nastavení BUGů';
		var L_showBugReports='Ukaž BUG report';
		var L_autoReportBugs='Automaticky odešli report BUGU na server';
		var L_showNewMessages='Ukaž novou zprávu';
		var L_MorePriceInfoInAuction='Ukaž rozšířenou cenu předmětu';
		var L_CheckAffordInAuction='Ukaž, zda předmět může být koupen (with &#10003; / &#10007;)';
		var L_allFilterAlert='Zobrazit potvrzovací okno, když v aukci vyplním typ objektu "Vše"';
		var L_BetterLife='Lepší zobrazení životů';
		var L_fightReminder='Připomenutí boje';
		//v2.6.0
		var L_sentQuickMessageBox='Pošli rychlou zprávu gildě';
		var L_send='Odelsat';
		var L_merchants='Obchodníci';
		var L_QuestsInfo='Info o úkolu';
		var L_Takenquests='Přijaté úkoly';
		var L_Completedquests='Splněné úkoly';
		var L_Failedquests='Nesplněné úkoly';
		var L_InactiveQuests='Neaktivované úkoly';
		var L_Workquests='Úkoly s prací';
		var L_Itemsquests='Úkoly s předměty';
		var L_Expeditionquests='Úkoly s výpravou';
		var L_Dungeonquests='Úkoly s bludištěm';
		var L_Combatquests='Úkoly se soubojem';
		var L_Arenaquests='Úkoly s arénou';
		var L_Turmaquests='Úkoly s turmou';
		var L_DisplayQuickMessageBox='Zobrazit okno s rychlou zprávou gildě';
		var L_DisplayDealerTimer='Zobrazit čas obchodníků (reset zboží)';
		var L_titleGenerate='Vygeneruj obrázek se svými staty';
		var L_clickToGenerate='Klikni "Generuj" a budeš mít svůj obrázek !';
		var L_generate='Generuj';
		var L_saveOnline='Ulož online';
		var L_uploadingImage='Uploading obrázek na server';
		var L_searchUrl='Hledat url';
		var L_imageUrl='Obrázek url';
		var L_imageNotFound='Obrázek nenalezen!';
		var L_calculateGuildUpgradeTitle='Vypočítej zlato na hráče, podle jeho levelu';
		var L_Include='Zahrnout';
		var L_FixedGold='Pevně dáno';
		var L_GoldPerPlayer='Zlato na hráče';
		var L_TargetGold='Cílová částka';
		var L_GoldInBank='Zlata v bance';
		var L_notCalculated='není započítáno';
		var L_Difference='Rozdíl';
		var L_Attacks='Útočník';
		var L_Defences='Obránce';
		var L_Friendly='Přátelé';
		var L_GoldLimit='Limit zlata';
		//v2.6.1
		var L_guildLife='Životy gildy';
		var L_addAll='+ Vše'; 
		var L_donateAll='Dát vše';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Hotovo!';
		var L_ManageMercenaries='Nastavení žoldáků';
		var L_name='Jméno';
		var L_protect='Přitáhni';
		var L_leave='Nic';
		var L_selected='Zvolené';
		var L_itemsAreNotSaved='Nemáš načteny informace o tvé postavě, abys mohl Tooltip použít, musíš v přehledu na postavu kliknout a nechat ji načíst';
		var L_mercenariesAreNotSaved='Nemáš načteny informace o tomto žoldákovi, abys mohl Tooltip použít, musíš v přehledu na žoldáka kliknout a nechat ho načíst';
		var L_changeAuctionCompareItems='Změnit charakter pro srovnání Tooltip';
		var L_notWearingAnItem='Předmět není nasazen';
		var L_notWearingAMercenary='Předmět není nasazen';
		var L_setNumOfGuild='Počet gild';
		//v2.8.0
		var L_playersGold='Moje zlato';
		var L_time='Čas'
		var L_expedition='Expedice';
		var L_turma='Turma';
		var L_dungeon='Bludiště';
		var L_titleSettings='Nastavení úvodní strany';
		var L_enableTitle='Povolit vlastní titulní stranu';
		var L_showLogoTitle='Ukaž "Gladiatus" v titulku';
		var L_showServerTitle='Ukaž server a zemi';
		var L_customTitleType='Vyber co další titul zobrazí'
		var L_enableTitlePoints='Příští přidání expedičního/bludištního bodu';
		var L_cancelAll='Zruš vše';
		var L_numberOfMyItems='Počet mých předmětů';
		var L_seeThisReport='Ukaž tento report';
		var L_TopBar='Zobrazit horní lištu při posouvání dolu';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	case 'ru':
		//shurtcut buttons
		var L_guildMailTitle='Написать сообщение гильдии';
		var L_guildMedicTitle='Перейти в Дом Медика';
		var L_guildMarketTitle='Перейти на Рынок гильдии';
		var L_guildStorageTitle='Перейти на Склад гильдии';
		var L_staticsTitle='Мои статы';
		var L_guildSafeTitle='Перейти в Банк гильдии';
		var L_guildWarTitle='Перейти в Зал Мастера Войны';
		var L_guildJailTitle='Перейти в Неготиам Х';
		var L_guildLibraryTitle='Перейти в Библиотеку';
		//alert/message
		var L_sure='Вы уверены ?';
		var L_weaponAlert='Вы <font color="red">не</font> одели оружие<font color="red">!</font>';
		var L_newMail='Для Вас <font color="yellow">новое</font> сообщение на форуме<font color="yellow">!</font>';
		var L_Full='Занято';
		var L_New='Новое';
		var L_newsAlert='<font color="yellow">новое</font> сообщение от GCA News<font color="yellow">!</font>';
		var L_PackagesWillExpire='Срок хранения вещей в сундуке скоро заканчивается';
		var L_hours='Часов';
		//custom player/guild image
		var L_changePlayerImage='Сменить аватарку';
		var L_Overfloated='Overfloated';
		var L_plImageWillBeLost='Аватарка будет утеряна и не сохранена';
		var L_plDecriptionWillBeCut='Описание персонажа будет подогнано по размеру ';
		var L_defImages='Показать стандартую аватарку';
		var L_imgMadeFrom='Картинка создана ';
		var L_changeGuildImage='Сменить аватарку гильдии';
		var L_gImageWillBeLost='Аватарка гильдии будет утеряна и не сохранена';
		var L_gDescrtipionWillBeCut='Описание Гильдии будет подогнано по размеру';
		//Training
		var L_spent='потрачено';
		var L_SimOfTraining = 'Тренировочный симулятор';
		var L_Stat = 'Статистика';
		var L_From = 'От';
		var L_To = 'До';
		var L_Cost = 'Стоимость';
		var L_TrainingCampLevel = 'Уровень Тренировачных площадок';
		var L_Reduction ='Reduction:';
		var L_TotalCost = 'Общая стоимость:';
		var L_Calculate = 'Расчитать';
		var L_TotalCostTitle = 'Заполнить левый столбец моими статами';
		var L_CalculateTitle = 'Расчитать стоимость всех статов';
		//Simulators
		var L_Simulator='Симулятор';
		var L_arena='АРЕНА';
		var L_Battles='Битвы';
		var L_Won='Победы';
		var L_Lost='Поражения';
		var L_Draws='Ничьи';
		var L_Damage='Урон';
		var L_myAvDamage='Ваш средний урон';
		var L_hisAvDamage='Средний урон противника';
		var L_Life='Жизни';
		var L_myRemLife='Ваши оставшиеся пункты жизни';
		var L_hisRemLife='Оставшиеся пункты жизни противника';
		var L_trainingSim='Тренировочный симулятор';
		var L_playerA='Игрок A';
		var L_playerB='Игрок B';
		var L_selectMethod='Выбрать метод';
		var L_selectEnemy='Выбрать врага';
		var L_byName='Игрок по имени';
		var L_byID='Игрок по ID';
		var L_go='ПОЕХАЛИ!';
		var L_winnigChance='Шанс победы';
		var L_PlayerAAvDamage='Средний урон игрока А';
		var L_PlayerBAvDamage='Средний урон игрока В';
		var L_Results='Итог';
		var L_ClearAll='Очистить';
		var L_playerNotFound='Игрок не найден';
		var L_searchData='Поиск...';
		var L_noStats='No stats for this';
		var L_thisIsLocation='Это локация';
		//Guild's storage info
		var L_StorageInfo='Информация о складе';
		var L_itemNum='Количество вещей';
		var L_TotalValue='Общая стоимость';
		var L_currentLife='Количество пунктов жизни';
		var L_lostLife='Потраченные пункты жизни';
		var L_healLife='Пункты жизни для лечения';
		var L_afterLife='После лечения';
		var L_findGold='Найти золото';
		//Auction
		var L_bidNum='Количество ставок';
		var L_Items='Вещь';
		var L_selectItem='Выбрать вещь';
		var L_Type='Тип';
		var L_selectType='Выбрать тип';
		var L_Clear='Очистить';
		var L_veryShort='Очень коротко';
		var L_anunGuild='Рассказать гильдии';
		var L_MessageWasSent='Сообщение отправлено!';
		var L_minDamage='Minumum max-damage';
		var L_weaponsFound='Найдено оружие';
		var L_improvementsFound='Найдено улучшение';
		var L_itemsFound='Найдена вещь';
		var L_select='Выбрать';
		var L_hideGoldHere='Можно засейвить золото';
		var L_priceValue='Цена = Стоимость';
		//Online Players
		var L_OnlinePlayers='Игроки онлайн';
		var L_guildPlayers='Согильдийцы онлайн';
		var L_familyPlayers='Члены братства онлайн';
		var L_noOnlinePlayer='Никого онлайн';
		var L_sentMessage='Отправить сообщение';
		//Packages
		var L_gold='Золото';
		var L_Packages='Пакеты';
		var L_invItems='Вещей в сундуке';
		var L_packedValue='Стоимость пакетов';
		var L_invValue='Стоимость сундука';
		var L_total='Всего';
		var L_PackedGold='Золота в пакетах';
		var L_totalGold='Всего заработано золота';
		var L_totalItemValue='Общая стоимость вещей';
		//Chat
		var L_Username='Ник';
		var L_Country='Страна';
		var L_GuildChat='Чат гильдии';
		var L_CountryChat='Чат провинции';
		var L_GlobalChat='Глобальный чат';
		//Other
		var L_checkAll='Проверить все';
		var L_ID='ID игрока';
		var L_ratioTitle='Еда Ratio | Цена Ratio';
		var L_noGuildText='You dont have a Guild.<br>If you have one please go <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >here</a> in order your stats be updated';
		var L_ReadyFor_expedition="Вы готовы к битве в экспедиции.";
		var L_ReadyFor_dungeon="Вы готовы к битве вподземелье.";
		var L_ReadyFor_arena="Вы готовы к битве на арене.";
		var L_ReadyFor_ct="Вы готовы к битве в круге турмы.";
		var L_Redirect_Q="Хотите пойти туда прямо сейчас?";		
		//Settings
		var L_GCASettings='Настройки Gladiatus Crazy Add On';
		var L_HeaderSettings='Главные настройки';
		var L_DisplayLife='Показать полосу жизни в заголовке';
		var L_DisplayLifePercent='Отображать пункты жизни и проценты (без наведения курсора)';
		var L_DisplayLinkButtons='Отображать кнопки-ссылки на верху страницы';
		var L_DisplayAuctionStatus='Отображать статус аукциона на верху страницы';
		var L_DisplayMerchantStatus='Добавить статус аукциона для наемников на верху страницы';
		var L_DisplayOnlinePlayersButton='Отображать Кнопку "Игроки онлайн" на верху страницы';
		var L_DisplayLinkBox='Отображать кнопки-ссылки справа страницы';
		var L_TimersSettings='Настройки таймеров';
		var L_DisplayLastBeingAttacked='Отображать время последней атаки на вас';
		var L_DisplayLastBeingAttacked2='Отображать время последней атаки на вас в круге турмы';
		var L_AuctionSettings='Настройки аукциона';
		var L_FillAuctionPrices='Автозаполнение цен на аукционе';
		var L_ChangeItemsBgColor='Сменить задний фон для вещей аукциона(основано на качестве вещи)';
		var L_AuctionMoreItemsLavels='Больше вариантов выбора уровней в поисковой системе аукциона';
		var L_DisplayItemNumAndBids='Отображать количество вещей и количество ставок на аукционе';
		var L_DisplayItemList='Отображать список вещей в поисковой системе аукциона и рынка';
		var L_ExpandAuctionTable3='Расширить аукцион (3 вещи в ряд)';
		var L_SimulatorSettings='Настройки симулятора';
		var L_enSimulator='Включить PvP симулятор на странице каждого игрока';
		var L_setFightNum='Задать количество симуляторных боев';
		var L_maximum='Максимум';
		var L_guildSettings='Настройки рынка и гильдии';
		var L_guildStoreInfo='Отображать дополнительную информацию на складе гильдии';
		var L_moreGuildStats='Отображать дополнительную информацию в зале мастера войны для 10 вражеских гильдий';
		var L_monsterSimulator='Отображать тренировочный симулятор на тренировочных площадках';
		var L_gmailChanges='Включить изменения почты гильдии';
		var L_ratioOpt='Показывать "рейтинг" (еды и цены) для каждой вещи не рынке';
		var L_enPriceRatio='Задействовать "рейтинг" цены(не совсем точен)';
		var L_alertSettings='Настройки предупреждений';
		var L_immedBuy='Показать окно подтверждения при покупки вещи с аукциона за рубины';
		var L_reduceTimeEx='Показать окно подтверждения при походе в экспедицию за рубины';
		var L_questOpt='Информировать о новых заданиях или времени их обновления';
		var L_forumMessageOpt='Информировать о новых форумных сообщениях (знак [ ! ] после ссылки "форум")';
		var L_weaponAlertOpt='Информировать, если не одето оружие (знак [ ! ] рядом с кнопкой "обзор")';
		var L_otherSettings='Другие настройки';
		var L_msgchangesOpt='Включить изменения сообщений';
		var L_enBBCODE='Включить BBCODE в сообщениях';
		var L_enChat='Включить чат(Гильдии,провинции и глобальный)';
		var L_enRememberTabs='Запоминать закладки у торговцев и в сундуке';
		var L_enImages='Включить систему смены аватарок гильдии/игроков';
		var L_disPackageCounters='Включить счетчики пакетов';
		var L_disID='Отобразить ID каждого игрока под его статами';
		var L_disHeal='Отображать Здоровье под статами для каждого игрока';
		var L_disTrainingChages='Отображать изменения базовых и максимальных статов во время тренировки';
		var L_enHighlight='Подсвечивать вещи, которые вы можете купить у торговца';
		var L_enStyleFixes='Apply style fixes';
		var L_speedSettings='Настройки скорости';
		var L_stopPulling='остановить получение информации при загрузке страницы(для медленных соединений)';
		var L_willStop='Эта опция будет <font color="red"><b>отключена</b></font>';
		var L_customCursor='Выбрать курсор';
		var L_Save='Сохранить';
		var L_AboutUs='О нас';
		var L_Settings='Настройки';
		var L_donateTitle='Помочь Gladiatus Crazy Add On';
		var L_donateText='Помогите и отблагодарите нас,пожертвовав небольшую сумму на наш счет PayPal.Пожертвования помогут нам продолжить работу над данным дополнением, что означает больше улучшений,новых возможностей и меньше ошибок!Нажмите на кнопку, чтобы поддержать нас ';
		var L_description='Gladiatus Crazy Add On бесплатное дополнение, помогающее в игре Gladiatus.Оно использует больше информации, предоставляемой сервером вашему браузеру.Наслаждайтесь битвами!';
		var L_aboutTitle='О Gladiatus Crazy Add On';
		var L_descriptionTitle='Описание';
		var L_Programmers='Программисты';
		var L_Translators='Переводчики';
		var L_Hostpage='Hostpage';
		var L_ContactUs='Контакты';
		var L_Contact1='e-mail - Apo59m@gmail.com или GreatApo@gmail.com';
		var L_Contact2='через ПМ на греческих серверах(GreatApo на s1 и DarkThanos на s2) или французском сервере (djor на s?)';
		var L_Contact3='или на 3 открытых топиках на <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">греческом</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">французском</a> and <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">американском</a> форумах';
		var L_thanksTo='Огромная благодарность';
		var L_MonsterHunters='Искатели имен/статов монстров';
		var L_ItemHunters='Искатели вещей';
		var L_HideGoldInAuction='Подсвечивать место для ставки, если вещь может быть продана за ту же сумму, что и куплена';
		var L_HideGoldInAuction='Подсвечивать место для ставки, если вещь может быть продана за ту же сумму, что и куплена';
		var L_guildSafeChanges='Enable guild safe changes';
		var L_guildMedicChanges='Показать дополнительную информацию в Доме медика';
		var L_foodBackColor='Красный фон для еды, которая восстанавливает пунктов больше необходимого';
		var L_packageAlertOpt='Информировать при истечении скрока хранения пакета (за 12 часов)';
		var L_bugSettings='Настройки ошибок';
		var L_showBugReports='Показывать отчеты об ошибках';
		var L_autoReportBugs='Автоматически отправлять отчеты об ошибках';
		var L_showNewMessages='Показать новые сообщения';
		var L_MorePriceInfoInAuction='Показать больше торговой информации';
		var L_CheckAffordInAuction='Показать, если вещь может быть куплена (с &#10003; / &#10007;)';
		var L_allFilterAlert='Показывать окно запроса при выборе в поле "Тип объекта" графы "Все"';
		var L_BetterLife='Улучшеный обзор пунктов жизни';
		var L_fightReminder='Напоминание о боях';
		//v2.6.0
		var L_sentQuickMessageBox='Отправить быстрое сообщение гильдии';
		var L_send='Отправлено';
		var L_merchants='Торговцы';
		var L_QuestsInfo='Информация о заданиях';
		var L_Takenquests='Взято заданий';
		var L_Completedquests='Завершенные задания';
		var L_Failedquests='Проваленные задания';
		var L_InactiveQuests='Неактивные задания';
		var L_Workquests='Задания на работу';
		var L_Itemsquests='Задания на поиск';
		var L_Expeditionquests='Задания в экспедициях';
		var L_Dungeonquests='Задания в подземельях';
		var L_Combatquests='Боевые задания';
		var L_Arenaquests='Задания на арене';
		var L_Turmaquests='Задания в турме';
		var L_DisplayQuickMessageBox='Показать быстрые сообщения гильдии';
		var L_DisplayDealerTimer='Показать таймер торговцев (обновление товаров)';
		var L_titleGenerate='Сгенерировать картинку-подпись';
		var L_clickToGenerate='Нажмите кнопку "Сгенерировать",чтобы сгенерировать картинку с вашими статами!';
		var L_generate='Сгенерировать';
		var L_saveOnline='Сохранить онлайн';
		var L_uploadingImage='Загрузка картинки на сервер';
		var L_searchUrl='Поиск url';
		var L_imageUrl='url картинки';
		var L_imageNotFound='Картинка не найдена!';
		var L_calculateGuildUpgradeTitle='Расчитать количество золота с игрока/уровень';
		var L_Include='Включая';
		var L_FixedGold='Зафиксированное золото';
		var L_GoldPerPlayer='Золота с игрока';
		var L_TargetGold='Необдходимо золота';
		var L_GoldInBank='Золото в банке';
		var L_notCalculated='Не посчитано';
		var L_Difference='Разница';
		var L_Attacks='Атака';
		var L_Defences='Защита';
		var L_Friendly='Дружественная';
		var L_GoldLimit='Предел золота';
		//v2.7.0
		var L_guildLife='Пункты жизни согильдийцев';
		var L_addAll='+ Все';
		var L_donateAll='Пожертвовать все';
		var L_visiteYourGuildsMemberPage='Для отправки сообщения гильдии Вам надо сохранить ID согильдийцев.\nХотите сделать это сейчас?';
		var L_Done='Готово!';
		var L_ManageMercenaries='Управление наемниками';
		var L_name='Имя';
		var L_protect='Защищать';
		var L_leave='Оставить';
		var L_selected='Выбрано';
		var L_itemsAreNotSaved='Данные о вещах не сохранены для этого персонажа\nВам нужно посетить его профиль.';
		var L_mercenariesAreNotSaved='Данные о наемниках не сохранены\nВам нужно посетить профиль своего дубля';
		var L_changeAuctionCompareItems='Изменить сравнение на аукционе вещей выбранного персонажа';
		var L_notWearingAnItem='Не одета вещь';
		var L_notWearingAMercenary='Не одет наемник';
		var L_setNumOfGuild='Количество гильдий';
		//v2.8.0
		var L_playersGold='Мое золото';
		var L_time='Время'
		var L_expedition='Экспедиция';
		var L_turma='Турма';
		var L_dungeon='Подземелье';
		var L_titleSettings='Настройки заголовка страницы';
		var L_enableTitle='Включить расширенный заголовок';
		var L_showLogoTitle='Показать надпись "Gladiatus" на заголовке';
		var L_showServerTitle='Также указать вервер и страну';
		var L_customTitleType='Выбрать ,что еще будет показано'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Отменить все';
		var L_numberOfMyItems='Количество вещей';
		var L_seeThisReport='Посмотреть этот отчет';
		var L_TopBar='Показать верхнюю панель при прокрутке страницы вниз';
		//v2.9.0
		var L_titleImages = 'Настройки аватарок';
		var L_showCustomsTitle = 'Показать сет вместо картинки, если он присутствует';
		var L_collectGold='Собрать золото';
		var L_itemSearch='Поиск вещей';
		var L_noteRenewMerchantsTime='Если настало время обновления товаров у торговцев, товары обновятся';
		var L_merchantsItems='Вещи торговцев';
		var L_auctionItems='Вещи аукциона';
		var L_itemName='Название вещи';
		break;
	case 'ee':
		//shurtcut buttons
		var L_guildMailTitle='Sõnum gildile';
		var L_guildMedicTitle='Gildi meedik';
		var L_guildMarketTitle='Gildi turg';
		var L_guildStorageTitle='Gildi ladu';
		var L_staticsTitle='Minu näitajad';
		var L_guildSafeTitle='Gildi pank';
		var L_guildWarTitle='Sõjameistri koda';
		var L_guildJailTitle='Gildi vangla';
		var L_guildLibraryTitle='Gildi raamatukogu';
		//alert/message
		var L_sure='Oled kindel ?';
		var L_weaponAlert='Relv <font color="red">ei</font> ole kasutusel<font color="red">!</font>';
		var L_newMail='Sul on <font color="yellow">uus</font> sõnum foorumis<font color="yellow">!</font>';
		var L_Full='Täis';
		var L_New='Uus';
		var L_newsAlert='Üks <font color="yellow">uus</font> sõnum GCA uudistes<font color="yellow">!</font>';
		var L_PackagesWillExpire='Pakid aeguvad';
		var L_hours='tundi';
		//custom player/guild image
		var L_changePlayerImage='Muuda mängija pilti';
		var L_Overfloated='Liiga suur maht';
		var L_plImageWillBeLost='Mängija pilti ei salvestata ja pilt läheb kaotsi';
		var L_plDecriptionWillBeCut='Mängija kirjeldust vähendatakse sobivaks';
		var L_defImages='Näita vaikimisi pilte';
		var L_imgMadeFrom='Piltide autor';
		var L_changeGuildImage='Muuda Gildi logo';
		var L_gImageWillBeLost='Gildi logo ei salvestata ja tehtud muudatused lähevad kaduma.';
		var L_gDescrtipionWillBeCut='Gildi kirjeldust vähendatakse sobivaks';
		//Training
		var L_spent='kulutatud';
		var L_SimOfTraining = 'Treeningu simulaator';
		var L_Stat = 'Statistika';
		var L_From = 'Alates';
		var L_To = 'Kuni';
		var L_Cost = 'Hind';
		var L_TrainingCampLevel = 'Treeningväljaku tase';
		var L_Reduction ='Allahindlus:';
		var L_TotalCost = 'Summa kokku:';
		var L_Calculate = 'Arvuta';
		var L_TotalCostTitle = 'Aseta minu näitajad vasakusse tulpa';
		var L_CalculateTitle = 'Arvuta kõikide näitajate koondsumma';
		//simulators
		var L_Simulator='Simulaator';
		var L_arena='Areen';
		var L_Battles='Lahingud';
		var L_Won='Võitsid';
		var L_Lost='Kaotasid';
		var L_Draws='Viigis';
		var L_Damage='Kahju';
		var L_myAvDamage='Sinu keskmine kahju';
		var L_hisAvDamage='Vastase keskmine kahju';
		var L_Life='Elu';
		var L_myRemLife='Sinu allesjäänud elud';
		var L_hisRemLife='Vastase allesjäänud elud';
		var L_trainingSim='Treeningu simulaator';
		var L_playerA='Mängija A';
		var L_playerB='Mängija B';
		var L_selectMethod='Vali viis';
		var L_selectEnemy='Vali vaenlane';
		var L_byName='Mängija nime järgi';
		var L_byID='Mängija ID järgi';
		var L_go='Proovi!';
		var L_winnigChance='Võiduvõimalus';
		var L_PlayerAAvDamage='Mängija A keskmine kahju';
		var L_PlayerBAvDamage='Mängija B keskmine kahju';
		var L_Results='Tulemused';
		var L_ClearAll='Puhasta väljad';
		var L_playerNotFound='Mängijat ei leitud';
		var L_searchData='Otsin andmeid...';
		var L_noStats='Puudulikud näitajad';
		var L_thisIsLocation='See on asukoht';
		//Guild's storage info
		var L_StorageInfo='Lao Info';
		var L_itemNum='Esemete arv';
		var L_TotalValue='Koguväärtus';
		var L_currentLife='Praegused elud';
		var L_lostLife='Kaotatud elud';
		var L_healLife='Taasta elud';
		var L_afterLife='Elud pärast ravi';
		var L_findGold='Leia kulda';
		//Auction
		var L_bidNum='Pakutud esemed';
		var L_Items='Esemed';
		var L_selectItem='Vali ese';
		var L_Type='Liik';
		var L_selectType='Vali liik';
		var L_Clear='Tühista';
		var L_veryShort='Väga lühike';
		var L_anunGuild='Kuuluta gildile';
		var L_MessageWasSent='Sõnum on saadetud!';
		var L_minDamage='Minimaalne suurim kahju';
		var L_weaponsFound='Leitud relvad';
		var L_improvementsFound='Leitud uuendused';
		var L_itemsFound='Leitud esemed';
		var L_select='Vali';
		var L_hideGoldHere='Siin saad peita oma kulda';
		var L_priceValue='Hind = Väärtus';
		//Online Players
		var L_OnlinePlayers='Online mängijad';
		var L_guildPlayers='Online gildi liikmed';
		var L_familyPlayers='Online perekonnaliikmed';
		var L_noOnlinePlayer='Ühtegi mängijat pole sees';
		var L_sentMessage='Saada sõnum';
		//Packages
		var L_gold='Kuld';
		var L_Packages='Pakid';
		var L_invItems='Seljakotis olevad esemed';
		var L_packedValue='Pakitud esemete väärtus';
		var L_invValue='Esemete väärtus seljakotis';
		var L_total='Kokku';
		var L_PackedGold='Pakitud kuld';
		var L_totalGold='Kogu kuld';
		var L_totalItemValue='Eseme koguväärtus';
		//Chat
		var L_Username='Kasutajanimi';
		var L_Country='Riik';
		var L_GuildChat='Gildi jutukas';
		var L_CountryChat='Üleriigiline jutukas';
		var L_GlobalChat='Globaalne jutukas';
		//Other
		var L_checkAll='Saada kõigile';
		var L_ID='Mängija ID';
		var L_ratioTitle='Toidu Ratio | Hinna Ratio';
		var L_noGuildText='Sul ei ole aktiivset Gildi.<br>Kui on, siis palun mine <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >siia</a> , et uuendada oma andmeid';
		var L_ReadyFor_expedition="Oled valmis ekspeditsioonil ründama.";
		var L_ReadyFor_dungeon="Oled valmis vangikoopas ründama.";
		var L_ReadyFor_arena="Oled valmis areenil ründama.";
		var L_ReadyFor_ct="Oled valmis Circus Turmas ründama.";
		var L_Redirect_Q="Oled valmis sinna suunamiseks?";
		//Settings
		var L_GCASettings='Gladiatus Crazy Add On seaded';
		var L_HeaderSettings='Päise seaded';
		var L_DisplayLife='Kuva päises elud';
		var L_DisplayLifePercent='Kuva elude punktid ja elude protsent (no mouseover)';
		var L_DisplayLinkButtons='Kuva päises lingid';
		var L_DisplayAuctionStatus='Kuva päises oksjoni aeg';
		var L_DisplayMerchantStatus='Kuva päises kaupmeeste aeg';
		var L_DisplayOnlinePlayersButton='Kuva päises "Online mängijad" nupp';
		var L_DisplayLinkBox='Kuva Link Box lehe paremal pool';
		var L_TimersSettings='Taimeri seaded';
		var L_DisplayLastBeingAttacked='Kuva aeg viimasest rünnakust areenil';
		var L_DisplayLastBeingAttacked2='Kuva aeg viimasest rünnakust Circus Turmas';
		var L_AuctionSettings='Oksjoni seaded';
		var L_FillAuctionPrices='Automaatsed hinnad oksjonil';
		var L_ChangeItemsBgColor='Muuda esemete tausta (baseerub kvaliteedil) oksjonil';
		var L_AuctionMoreItemsLavels='Rohkem esemete tasemeid oksjoni otsingu lahtris';
		var L_DisplayItemNumAndBids='Kuva oksjonil olevate esemete arv ja pakutud esemete arv';
		var L_DisplayItemList='Kuva esemete nimekiri oksjoni ja turu otsingu lahtris';
		var L_ExpandAuctionTable3='Laienda oksjoni tabelit (3 eset igas reas)';
		var L_SimulatorSettings='Simulaatori seaded';
		var L_enSimulator='Kasuta PvP simulaatorit iga mängija profiilil';
		var L_setFightNum='Määra simuleeritud rünnakute arv';
		var L_maximum='maksimaalne';
		var L_guildSettings='Gildi & Turu seaded';
		var L_guildStoreInfo='Kuva infolahter gildi laos';
		var L_moreGuildStats='Kuva rohkem andmeid gildi sõjameistri kojas esimese 10 vastasgildi kohta.';
		var L_monsterSimulator='Kuva treeningu simulaator gildi treeningväljakul';
		var L_gmailChanges='Luba gildi sõnumi muudatused';
		var L_ratioOpt='Kuva "Ratio" väärtus (toit ja hind) igale esemele turul';
		var L_enPriceRatio='Luba hinna "Ratio" väärtus (see ei ole väga täpne)';
		var L_alertSettings='Veateate seaded';
		var L_immedBuy='Küsi kinnitust oksjonilt eset koheselt välja ostes.';
		var L_reduceTimeEx='Küsi kinnitust rubiinide eest ekspeditsioonil võitlemiseks.';
		var L_questOpt='Teavita mind uue retke saadavusest või kuva allesjäänud aeg';
		var L_forumMessageOpt='Teavita mind uuest sõnumist ([ ! ] sõnumi lingi kõrval)';
		var L_weaponAlertOpt='Teavita mind kui relv ei ole kasutusel ([ ! ] Ülevaate lingi kõrval)';
		var L_otherSettings='Ülejäänud seaded';
		var L_msgchangesOpt='Luba sõnumi muudatused';
		var L_enBBCODE='Luba BBCODE sõnumites';
		var L_enChat='Luba jutukas (Gild, Üleriigiline ja Globaalne)';
		var L_enRememberTabs='Mäleta viimati avatud seljakoti ja kaupmeeste riiuleid';
		var L_enImages='Luba tavamängija/gildi pilti';
		var L_disPackageCounters='Kuva pakkide loendur';
		var L_disID='Kuva igal mängijal näitajate all mängija ID';
		var L_disHeal='Kuva igal mängijal näitajatel all RAVI näitajad';
		var L_disTrainingChages='Kuva põhinäitajad ja näitajate maksimaalsed muutused peale treeningut';
		var L_enHighlight='Tõsta esile esemed mida saad kaupmeestelt osta';
		var L_enStyleFixes='Rakenda stiili seaded';
		var L_speedSettings='Kiiruse seaded';
		var L_stopPulling='Ära tõmba infot lehe laadimisel (valik aeglasele ühendusele)';
		var L_willStop='See valik <font color="red"><b>peatab</b></font>';
		var L_customCursor='Vali põhiline kursor';
		var L_Save='Salvesta';
		var L_AboutUs='Meist';
		var L_Settings='Seaded';
		var L_donateTitle='Anneta Gladiatus Crazy Add On toetuseks';
		var L_donateText='Täna ja aita meid annetades meie PayPal kontole. Meile annetades aitad jätkata Gladiatuse laienduse täiustamist, mis tähendab rohkem uuendusi, uusi võimalusi ja vähem pisivigu! Meie toetamiseks vajuta nupule ';
		var L_description='Gladiatus Crazy Add On on tasuta laiendus, mis aitab sind Gladiatuses läbi igasuguste mänguga kaasnevate iseärasuste. See kasutab infot paremini mida mängu server sinu brauserile lubab. Toredat mängimist ja naudi oma võitlusi!';
		var L_aboutTitle='Seoses Gladiatus Crazy Add On laiendusega';
		var L_descriptionTitle='Kirjeldus';
		var L_Programmers='Programmeerijad';
		var L_Translators='TÕlkijad';
		var L_Hostpage='Koduleht';
		var L_ContactUs='Kontakt';
		var L_Contact1='e-mail Apo59m@gmail.com või GreatApo@gmail.com';
		var L_Contact2='Saada sõnum meie mängijatele Kreeka serveris (GreatApo s1 ja DarkThanos s2) või Prantsuse serveris (djor s?)';
		var L_Contact3='või kolmes avatud foorumis <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Greek</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">French</a> ja <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a> forum';
		var L_thanksTo='Suured tänud';
		var L_MonsterHunters='Koletiste näitajate/nimede kütid';
		var L_ItemHunters='Esemete kütid';
		var L_HideGoldInAuction='Värvi/Tõsta esile sisend kui saan müüa eseme kaupmehele sama hinnaga mis pakun oksjonil';
		var L_HideGoldInAuction='Värvi/Tõsta esile sisend kui saan müüa eseme kaupmehele sama hinnaga mis pakun oksjonil';
		var L_guildSafeChanges='Luba gildi turvalised muudatused';
		var L_guildMedicChanges='Näita rohkem infot Villa Medic\'is';
		var L_foodBackColor='Punane taustavärv toidule, mis annavad rohkem elupunkte kui vaja (ülevaates)';
		var L_packageAlertOpt='Teavita mind kui pakid hakkavad aeguma (12 tundi varem)';
		var L_bugSettings='Pisivigade seaded';
		var L_showBugReports='Näita pisivigade raporteid';
		var L_autoReportBugs='Raportid automaatselt serverile';
		var L_showNewMessages='Näita uusi sõnumeid';
		var L_MorePriceInfoInAuction='Näita rohkem hinnainfot';
		var L_CheckAffordInAuction='Näita kas eset saab osta ( &#10003; / &#10007;)';
		var L_allFilterAlert='Küsi kinnitust kui oksjoni otsingul "Eseme tüüp" on "Kõik"';
		var L_BetterLife='Parem elude ülevaade';
		var L_fightReminder='Rünnaku meeldetuletus';
		//v2.6.0
		var L_sentQuickMessageBox='Saada gildile kiirsõnum';
		var L_send='Saada';
		var L_merchants='Kaupmehed';	
		var L_QuestsInfo='Ülesannete info';
		var L_Takenquests='Võetud ülesanded';
		var L_Completedquests='Lõpetatud ülesanded';
		var L_Failedquests='Nurjunud ülesanded';
		var L_InactiveQuests='Ootel ülesanded';
		var L_Workquests='Tööülesanded';
		var L_Itemsquests='Esemete ülesanded';
		var L_Expeditionquests='Retke ülesanded';
		var L_Dungeonquests='Vangikoopa ülesanded';
		var L_Combatquests='Valikülesanded';
		var L_Arenaquests='Areeni ülesanded';
		var L_Turmaquests='Turma ülesanded';
		var L_DisplayQuickMessageBox='Kuva gildi kiirsõnumi kast';
		var L_DisplayDealerTimer='Kuva kaupmeeste taimer (kaupade uuendus)';
		var L_titleGenerate='Genereeri signatuurpilt';
		var L_clickToGenerate='Vajuta "Genereeri" nuppu, et genereerida pilti sinu näitajatega!';
		var L_generate='Genereeri';
		var L_saveOnline='Salvesta online';
		var L_uploadingImage='Pildi üleslaadimine serverisse';
		var L_searchUrl='Otsin urli';
		var L_imageUrl='Pildi url';
		var L_imageNotFound='Pilti ei leitud!';
		var L_calculateGuildUpgradeTitle='Arvesta välja kulla kogus igale mängijale baseerudes tasemetele';
		var L_Include='Kaasa';
		var L_FixedGold='Kinnitatud kuld';
		var L_GoldPerPlayer='Kulda iga mängija kohta';
		var L_TargetGold='Vajaminev kuld';
		var L_GoldInBank='Kuld gildi pangas';
		var L_notCalculated='Mittearvestatud';
		var L_Difference='Vahe';
		var L_Attacks='Rünnakud';
		var L_Defences='Kaitsed';
		var L_Friendly='Sõbralikud';
		var L_GoldLimit='Kulla limiit';
		//v2.7.0
		var L_guildLife='Gildi liikmete elud';
		var L_addAll='+ Kõik';
		var L_donateAll='Anneta kõik';
		var L_visiteYourGuildsMemberPage='Gildi sõnumi saatmiseks pead esmalt salvestama gildi liikmete ID-d.\n Kas soovid seda teha kohe?';
		var L_Done='Valmis!';
		var L_ManageMercenaries='Majanda palgasõduritega';
		var L_name='Nimi';
		var L_protect='Kaitse';
		var L_leave='Passiivne';
		var L_selected='Vali';
		var L_itemsAreNotSaved='Esemete andmed ei ole salvestatud sellele tegelasele\nPead esmalt selle mängija profiili külastama.';
		var L_mercenariesAreNotSaved='Palgasõdurite andmed ei ole salvestatud\nPead esmalt külastama vangikoopa peameest';
		var L_changeAuctionCompareItems='Muuda oksjoni valikute seadeid, baseerudes valitud tegelaskujule.';
		var L_notWearingAnItem='Ei kaasa eset';
		var L_notWearingAMercenary='Ei kaasa palgasõdurit';
		var L_setNumOfGuild='Gildide arv';
		//v2.8.0
		var L_playersGold='Minu kuld';
		var L_time='Aeg'
		var L_expedition='Ekspeditsioon';
		var L_turma='Turma';
		var L_dungeon='Vangikoobas';
		var L_titleSettings='Lehe pealkirja seaded';
		var L_enableTitle='Luba lehe algne pealkiri';
		var L_showLogoTitle='Näita "Gladiatus" pealkirjas';
		var L_showServerTitle='Samuti näita serverit ja riiki';
		var L_customTitleType='Vali mida pealkiri veel näitab'
		var L_enableTitlePoints='Kuva ekspeditsiooni/vangikoopa punktid aja kõrval';
		var L_cancelAll='Tühista kõik';
		var L_numberOfMyItems='Minu esemete arv';
		var L_seeThisReport='Näita raportit';
		var L_TopBar='Lehte alla kerides kuva päis';
		//v2.9.0
		var L_titleImages = 'Pildi seaded';
		var L_showCustomsTitle = 'Näita vaikimisi pilti, mitte kuvandit';
		var L_collectGold='Korja kuld';
		var L_itemSearch='Esemete otsing';
		var L_noteRenewMerchantsTime='Kui kaupmeeste aeg on lõppenud tulevad uued kaubad';
		var L_merchantsItems='Kaupmeeste esemed';
		var L_auctionItems='Oksjoni esemed';
		var L_itemName='Eseme nimi';
		break;
	case 'es':
		//Shortcut Buttons
		var L_guildMailTitle='Escribir circular';
		var L_guildMedicTitle='Ir a la villa medica';
		var L_guildMarketTitle='Ir al mercado interno';
		var L_guildStorageTitle='Ir al deposito';
		var L_staticsTitle='Mis stats';
		var L_guildSafeTitle='Ir al banco';
		var L_guildWarTitle='Ir a Hall maestros de la guerra';
		var L_guildJailTitle='Ir a Negotium X';
		var L_guildLibraryTitle='Ir a biblioteca';
		//alert/message
		var L_sure='¿Estas seguro?';
		var L_weaponAlert=' <font color="red">No</font>usas ningun arma<font color="red">!</font>';
		var L_newMail='Usted tiene <font color="yellow">nuevo</font> mensaje en el foro<font color="yellow">!</font>';
		var L_Full='Full';
		var L_New='NEW';
		var L_newsAlert='Esto es un <font color="yellow">nuevo</font> mensaje en GCA Noticias<font color="yellow">!</font>';
		var L_PackagesWillExpire='Paquetes a punto de expirar';
		var L_hours='horas';
		//custom player/guild image
		var L_changePlayerImage='Cambiar imagen del jugador';
		var L_Overfloated='Overfloated';
		var L_plImageWillBeLost='La imagen del jugador no se guardo';
		var L_plDecriptionWillBeCut='La descripcion del jugador sera ajustada';
		var L_defImages='Mostrar imagen por defecto';
		var L_imgMadeFrom='Imagenes hechas por';
		var L_changeGuildImage='Cambiar imagen de alianza';
		var L_gImageWillBeLost='No se guardo imagen de alianza';
		var L_gDescrtipionWillBeCut='La descripcion de la alianza sera ajustada';
		//Training
		var L_spent='gastado';
		var L_SimOfTraining = 'Simulador de entrenamiento';
		var L_Stat = 'Estadisticas';
		var L_From = 'De';
		var L_To = 'A';
		var L_Cost = 'Costo';
		var L_TrainingCampLevel = 'Nivel Campos ent.';
		var L_Reduction ='ahorro:';
		var L_TotalCost = 'Costo Total:';
		var L_Calculate = 'Calcular';
		var L_TotalCostTitle = 'Poner mis stats en la columna de la izquierda';
		var L_CalculateTitle = 'Calcular el costo de todos los stats';
		//Simulators
		var L_Simulator='Simulador';
		var L_arena='ARENA';
		var L_Battles='Batallas';
		var L_Won='Victorias';
		var L_Lost='Derrotas';
		var L_Draws='Empates:';
		var L_Damage='Daño';
		var L_myAvDamage='Tu Promedio de daño';
		var L_hisAvDamage='Su Promedio de daño';
		var L_Life='Vida';
		var L_myRemLife='Tu vida restante';
		var L_hisRemLife='Su Vida restante';
		var L_trainingSim='Simulador de batalla';
		var L_playerA='Jugador A';
		var L_playerB='Jugador B';
		var L_selectMethod='Selec. Oponente';
		var L_selectEnemy='Selec. enemigo';
		var L_byName='Personaje por nombre';
		var L_byID='Personaje por ID';
		var L_go='Simular!';
		var L_winnigChance='Porcentaje de victoria';
		var L_PlayerAAvDamage='Jugador A daño promedio';
		var L_PlayerBAvDamage='Jugador B daño promedio';
		var L_Results='Resultados';
		var L_ClearAll='Borrar';
		var L_playerNotFound='Jugador no encontrado';
		var L_searchData='Buscado datos...';
		var L_noStats='No hay stats';
		var L_thisIsLocation='Esta es una ubicacion';
		//storage info
		var L_StorageInfo='Info guardada';
		var L_itemNum='Numero de items';
		var L_TotalValue='Valor total';
		var L_currentLife='P. de vida actuales';
		var L_lostLife='P.de vida perdidos';
		var L_healLife='Curar';
		var L_afterLife='Vida despues de curar';
		var L_findGold='Buscar oro';
		//Auction
		var L_bidNum='Cantidad de ofertas';
		var L_Items='Items';
		var L_selectItem='Seleccionar Item';
		var L_Type='Tipo';
		var L_selectType='Seleccionar tipo';
		var L_Clear='Borrar';
		var L_veryShort='Muy corto';
		var L_anunGuild='Anunciar a la alianza';
		var L_MessageWasSent='Mensaje enviado!';
		var L_minDamage='Minimo Max-Dmg';
		var L_weaponsFound='Armas encontradas';
		var L_improvementsFound='Mejoras encotradas';
		var L_itemsFound='Items encontrados';
		var L_select='Seleccionar';
		var L_hideGoldHere='Permite empaquetar oro';
		var L_priceValue='Precio = Valor';
		//Online Players
		var L_OnlinePlayers='Jugadores Online';
		var L_guildPlayers='Alianza Online';
		var L_familyPlayers='Familiares Online';
		var L_noOnlinePlayer='No jugadores Online';
		var L_sentMessage='Enviar mensaje';
		//Packages
		var L_gold='Oro';
		var L_Packages='Paquetes';
		var L_invItems='Items del inventario';
		var L_packedValue='Valor de paquetes';
		var L_invValue='Valor inventario';
		var L_total='Total';
		var L_PackedGold='Paquetes de oro';
		var L_totalGold='Oro total ganado';
		var L_totalItemValue='Valor total de items';
		//Chat
		var L_Username='Usuario';
		var L_Country='Pais';
		var L_GuildChat='Chat alianza';
		var L_CountryChat='Chat pais';
		var L_GlobalChat='Chat global';
		//Other
		var L_checkAll='Revisar todo';
		var L_ID='Personaje ID';
		var L_ratioTitle='Comida Ratio | Precio Ratio';
		var L_noGuildText='No estas en una alianza.<br>Si estas en una <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >here</a> click aqui para actualizar';
		var L_ReadyFor_expedition="Ya estas listo para una expedicion.";
		var L_ReadyFor_dungeon="Ya estas listo para la mazmorra.";
		var L_ReadyFor_arena="Ya estas listo para la arena.";
		var L_ReadyFor_ct="Ya estas listo para el circo turma.";
		var L_Redirect_Q="¿Quieres ser redirigido alli?";	
		//Settings
		var L_GCASettings='Configuracion Gladiatus Crazy Add On';
		var L_HeaderSettings='Config. Cabezera';
		var L_DisplayLife='Mostrar barra de vida';
		var L_DisplayLifePercent='Mostrar p. de vida y porcentaje (Sin raton)';
		var L_DisplayLinkButtons='Mostrar botones de enlaces';
		var L_DisplayAuctionStatus='Mostrar el estado de subasta';
		var L_DisplayMerchantStatus='Agregar el estado de comerciantes';
		var L_DisplayOnlinePlayersButton='Mostrar boton "Jugadores online"';
		var L_DisplayLinkBox='Mostrar cuadro de links a la derecha';
		var L_TimersSettings='Configuracion de alarmas';
		var L_DisplayLastBeingAttacked='Mostrar el tiempo transcurrido del ultimo ataque recibido en la arena';
		var L_DisplayLastBeingAttacked2='Mostrar el tiempo transcurrido del ultimo ataque recibido en el Circus Turma';
		var L_AuctionSettings='Configuracion de la subasta';
		var L_FillAuctionPrices='Auto llenado de precios';
		var L_ChangeItemsBgColor='Cambiar el fondo de los items (basado en su calidad)';
		var L_AuctionMoreItemsLavels='Mas niveles de items en el cuadro de busqueda';
		var L_DisplayItemNumAndBids='Mostrar cantidad de items y ofertas';
		var L_DisplayItemList='Mostrar una lista de items en la busqueda del mercado y la subasta';
		var L_ExpandAuctionTable3='Expandir tabla de subastas (3 items por columna)';
		var L_SimulatorSettings='Configuracion del simulador';
		var L_enSimulator='Activar simulador PvP en cada perfil';
		var L_setFightNum='Establecer numero de peleas simuladas';
		var L_maximum='maximo';
		var L_guildSettings='Configuracon de mercado & alianza';
		var L_guildStoreInfo='Mostrar cuadro de info en el deposito';
		var L_moreGuildStats='Mostrar mas informacion de las primeras 10 alianzas oponentes';
		var L_monsterSimulator='Mostrar simulador en el campo de entrenamiento';
		var L_gmailChanges='Activar configuracion de circulares';
		var L_ratioOpt='Mostrar el valor "Ratio"(alimentos y el precio) de cada artículo en el mercado';
		var L_enPriceRatio='Habilitar el valor "Ratio" del precio (No es muy preciso)';
		var L_alertSettings='Configuracion de alerta';
		var L_immedBuy='Mostrar cuadro de confirmacion al comprar un item inmediato en la subasta';
		var L_reduceTimeEx='Mostrar cuadro de configuracion cuando pagas rubis para hacer una expedicion';
		var L_questOpt='Informarme si tengo nuevas misiones, mostrar tiempo de espera';
		var L_forumMessageOpt='Informarme si tengo un mensaje nuevo foro (con el signo [!] Al lado del link del foro)';
		var L_weaponAlertOpt='Informarme si no llevo un arma (con el signo [!] Junto a vision general)';
		var L_otherSettings='Otras configuraciones';
		var L_msgchangesOpt='Habilitar cambios en mensajes';
		var L_enBBCODE='Habilitar BBcode en mensajes';
		var L_enChat='Activar chat (Alianza, pais y Global)';
		var L_enRememberTabs='Recordar pestañas inventario y comerciantes';
		var L_enImages='Habilitar imagen personalizada (Personaje/Alianza)';
		var L_disPackageCounters='Mostrar los contadores de paquetes';
		var L_disID='Muestra el ID de cada jugador en sus estadísticas';
		var L_disHeal='Muestra la estadística SALUD de cada jugador';
		var L_disTrainingChages='Mostrar basicos y maximos en el entrenamiento';
		var L_enHighlight='Resaltar los elementos que se pueden comprar en los comercios';
		var L_enStyleFixes='Aplicar correcciones de estilo';
		var L_speedSettings='Configuracion de velocidad';
		var L_stopPulling='Dejar de tirar información al cargar la página (opción para conexiones lentas)';
		var L_willStop='Esta opcion se <font color="red"><b>detiene</b></font>';
		var L_customCursor='Elija un cursor personalizado';
		var L_Save='Guardar';
		var L_AboutUs='Acerca de nosotros';
		var L_Settings='Configuracion';
		var L_donateTitle='Donar a Gladiatus Crazy Add On';
		var L_donateText='Thank us and also help us by donating some money in our PayPal account. By donating to our account you help us continue working on this add on which means more updates, new features and no bugs! Click the button to support us ';
		var L_description='Gladiatus Crazy Agregar On es un complemento gratuito que le ayuda con Gladiatus a través de las muchas características que da. En realidad utiliza mejor la información que el servidor ofrece a su navegador del juego. Que se diviertan con él y disfrutar de sus peleas!';
		var L_aboutTitle='Sobre Gladiatus Crazy Add On';
		var L_descriptionTitle='Descripcion';
		var L_Programmers='Programadores';
		var L_Translators='Traductores';
		var L_Hostpage='Hostpage';
		var L_ContactUs='Contactenos';
		var L_Contact1='por e-mail a Apo59m@gmail.com o GreatApo@gmail.com';
		var L_Contact2='con el mensaje a nuestros jugadores en los servidores de griego (GreatApo at s1 and DarkThanos at s2) o servidor frances (djor at s?)';
		var L_Contact3='o de los 3 temas abiertos en el <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Greek</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">French</a> and <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a> forum';
		var L_thanksTo='Muchas gracias';
		var L_MonsterHunters='Monstruos stats/nombre cazadores';
		var L_ItemHunters='Buscador de items';
		var L_HideGoldInAuction='Color / Resalte la entrada si puedo vender el artículo al comerciante, al mismo precio que la oferta';
		var L_HideGoldInAuction='Color / Resalte la entrada si puedo vender el artículo al comerciante, al mismo precio que la oferta';
		var L_guildSafeChanges='Activar los cambios de seguridad de la alianza';
		var L_guildMedicChanges='Ver más información en la villa medica';
		var L_foodBackColor='Fondo rojo para los alimentos que dan más puntos de vida de los que necesitas (en inventario)';
		var L_packageAlertOpt='Informarme si mis paquetes estan a punto de caducar (12 horas antes)';
		var L_bugSettings='Configuracion de errores';
		var L_showBugReports='Mostrar reportes de errores';
		var L_autoReportBugs='Informar automaticamente de errores al servidor';
		var L_showNewMessages='Mostrar mensajes nuevos';
		var L_MorePriceInfoInAuction='Ver más información de precios';
		var L_CheckAffordInAuction='Mostrar si el artículo puede ser comprado (with &#10003; / &#10007;)';
		var L_allFilterAlert='Muestra un cuadro de confirmación en la búsqueda de la subasta cuando el "Tipo de objeto" sea "Todo"';
		var L_BetterLife='Vista mejorada de la vida';
		var L_fightReminder='Recordatoria de lucha';
		//v2.6.0
		var L_sentQuickMessageBox='Enviar una circular';
		var L_send='Enviar';
		var L_merchants='Comerciantes';
		var L_QuestsInfo='Informacion de misiones';
		var L_Takenquests='Aceptadas';
		var L_Completedquests='Completas';
		var L_Failedquests='Fallidas';
		var L_InactiveQuests='Misiones inactivas';
		var L_Workquests='Trabajo';
		var L_Itemsquests='Items';
		var L_Expeditionquests='Expedicion';
		var L_Dungeonquests='Mazmorra';
		var L_Combatquests='Combate';
		var L_Arenaquests='Arena';
		var L_Turmaquests='Circo Turma';
		var L_DisplayQuickMessageBox='Mostrar el cuadro de circulares';
		var L_DisplayDealerTimer='Muestra el contador de tiempo los comerciantes (los bienes renuevan)';
		var L_titleGenerate='Generar imagen para firma';
		var L_clickToGenerate='Haga clic en el botón "Generar" para generar una imagen con las estadísticas!';
		var L_generate='Generar';
		var L_saveOnline='Guardar online';
		var L_uploadingImage='Subir imagen al server';
		var L_searchUrl='Buscando url';
		var L_imageUrl='Imagen url';
		var L_imageNotFound='Imagen no encontrada!';
		var L_calculateGuildUpgradeTitle='Calcular oro basado en el nivel del jugador';
		var L_Include='Incluir';
		var L_FixedGold='Oro fijo';
		var L_GoldPerPlayer='Oro por jugador';
		var L_TargetGold='Objetivo de oro';
		var L_GoldInBank='Oro en el banco';
		var L_notCalculated='no calculado';
		var L_Difference='Diferencia';
		var L_Attacks='Ataques';
		var L_Defences='Defensas';
		var L_Friendly='amigable';
		var L_GoldLimit='Limite de oro';
		//v2.6.1
		var L_guildLife='Vida de alianza';
		var L_addAll='+ Todo';
		var L_donateAll='Donar todo';
		var L_visiteYourGuildsMemberPage='Para enviar un mensaje de alianza usted debe guardar su ID de miembros del gremio. \ N ¿Desea hacerlo ahora?';
		var L_Done='¡Hecho!';
		var L_ManageMercenaries='Gestion de mercenarios';
		var L_name='Nombre';
		var L_protect='Proteger';
		var L_leave='Dejar';
		var L_selected='Seleccionado';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Informacion de mercenarios no se guardo\nDebes ir al perfil de mercenarios';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='No usar un item';
		var L_notWearingAMercenary='No usar un mercenario';
		var L_setNumOfGuild='Cantidad de alianzas';
		//v2.8.0
		var L_playersGold='Mi oro';
		var L_time='tiempo'
		var L_expedition='Expedicion';
		var L_turma='Turma';
		var L_dungeon='Mazmorra';
		var L_titleSettings='Configuración de la titulo de pagina';
		var L_enableTitle='Habilitar el titulo de pagina personalizada';
		var L_showLogoTitle='Mostrar "Gladiatus" en el título';
		var L_showServerTitle='También muestra el servidor y el país';
		var L_customTitleType='Seleccione el título ¿qué otra cosa se mostrara?'
		var L_enableTitlePoints='Agreguar puntos de expendition/mazmorra junto a la hora';
		var L_cancelAll='Cancelar todo';
		var L_numberOfMyItems='Cantidad de mis items';
		var L_seeThisReport='Vea este informe';
		var L_TopBar='Mostrar la barra superior cuando se desplaza hacia abajo';
		//v1.9.0
		var L_titleImages = 'Configuracion de imagen';
		var L_showCustomsTitle = 'Si un cliente existente, mostrar el disfraz y no la imagen';
		var L_collectGold='Juntar oro';
		var L_itemSearch='Buscar items';
		var L_noteRenewMerchantsTime='Si el tiempo de los comerciantes ha terminado, los nuevos bienes vendran';
		var L_merchantsItems='Comerciantes de items';
		var L_auctionItems='Items de la subasta';
		var L_itemName='Nombre del item';
		break;
	default:
		//Shurtcut Buttons
		var L_guildMailTitle='Write guild message';
		var L_guildMedicTitle='Go to guild\'s medic center';
		var L_guildMarketTitle='Go to guild\'s market';
		var L_guildStorageTitle='Go to guild\'s storage';
		var L_staticsTitle='My stats';
		var L_guildSafeTitle='Go to guild\'s bank';
		var L_guildWarTitle='Go to guild\'s war camp';
		var L_guildJailTitle='Go to guild\'s jail';
		var L_guildLibraryTitle='Go to guild\'s library';
		//Alerts
		var L_sure='Are you sure ?';
		var L_weaponAlert='You are <font color="red">not</font> wearing a weapon<font color="red">!</font>';
		var L_newMail='You have a <font color="yellow">new</font> message at forum<font color="yellow">!</font>';
		var L_Full='Full';
		var L_New='NEW';
		var L_newsAlert='These is a <font color="yellow">new</font> message at GCA News<font color="yellow">!</font>';
		var L_PackagesWillExpire='Packages will soonly expire';
		var L_hours='hours';
		//Change Image
		var L_changePlayerImage='Change player\'s image';
		var L_Overfloated='Overfloated';
		var L_plImageWillBeLost='Player\'s image will be lost and will not be saved';
		var L_plDecriptionWillBeCut='Player\'s description will be cut to fit';
		var L_defImages='Show Default Images';
		var L_imgMadeFrom='Images were made from';
		var L_changeGuildImage='Change Guild image';
		var L_gImageWillBeLost='Guild\'s image will be lost and will not be saved';
		var L_gDescrtipionWillBeCut='Guild\'s description will be cut to fit';
		//Training
		var L_spent='spent';
		var L_SimOfTraining = 'Training simulator';
		var L_Stat = 'Statistic';
		var L_From = 'From';
		var L_To = 'To';
		var L_Cost = 'Cost';
		var L_TrainingCampLevel = 'Training camp level';
		var L_Reduction ='Reduction:';
		var L_TotalCost = 'Total cost:';
		var L_Calculate = 'Calculate';
		var L_TotalCostTitle = 'Put my stats in the left column';
		var L_CalculateTitle = 'Calculate the cost of all the statistics';
		//Simulator
		var L_Simulator='Simulator';
		var L_arena='ARENA';
		var L_Battles='Battles';
		var L_Won='Won';
		var L_Lost='Lost';
		var L_Draws='Draws';
		var L_Damage='Damage';
		var L_myAvDamage='Your Average Damage';
		var L_hisAvDamage='Opponent\'s Average Damage';
		var L_Life='Life';
		var L_myRemLife='Your Remaining Life';
		var L_hisRemLife='Opponent\'s Remaining Life';
		var L_trainingSim='Training Simulator';
		var L_playerA='Player A';
		var L_playerB='Player B';
		var L_selectMethod='Selecy method';
		var L_selectEnemy='Select enemy';
		var L_byName='Player by name';
		var L_byID='Player by ID';
		var L_go='GO!';
		var L_winnigChance='Chance of winning';
		var L_PlayerAAvDamage='Player\'s A average damage';
		var L_PlayerBAvDamage='Player\'s B average damage';
		var L_Results='Results';
		var L_ClearAll='Clear All';
		var L_playerNotFound='Player not found';
		var L_searchData='Searching data...';
		var L_noStats='No stats for this';
		var L_thisIsLocation='This is a location';
		//Guild
		var L_StorageInfo='Storage Info';
		var L_itemNum='Number of Items';
		var L_TotalValue='Total value';
		var L_currentLife='Current life points';
		var L_lostLife='Lost life points';
		var L_healLife='Heal life points';
		var L_afterLife='Life after heal';
		var L_findGold='Find gold';
		//Auction
		var L_bidNum='Number of bids';
		var L_Items='Items';
		var L_selectItem='Select Item';
		var L_Type='Type';
		var L_selectType='Select Type';
		var L_Clear='Clear Input';
		var L_veryShort='Very Short';
		var L_anunGuild='Announce to guild';
		var L_MessageWasSent='Message was sent!';
		var L_minDamage='Minimum max-damage';
		var L_weaponsFound='Weapons found';
		var L_improvementsFound='Improvements found';
		var L_itemsFound='Items found';
		var L_select='Select';
		var L_hideGoldHere='You can hide your gold here';
		var L_priceValue='Price = Value';
		//Online Players
		var L_OnlinePlayers='Online Players';
		var L_guildPlayers='Online Guild Players';
		var L_familyPlayers='Online Family Players';
		var L_noOnlinePlayer='No player online';
		var L_sentMessage='Send message';
		//Packages
		var L_gold='Gold';
		var L_Packages='Packages';
		var L_invItems='Inventory  items';
		var L_packedValue='Packed items\' value';
		var L_invValue='Inventory items\' value';
		var L_total='Total';
		var L_PackedGold='Packed gold';
		var L_totalGold='Total gained gold';
		var L_totalItemValue='Total item value';
		//Chat
		var L_checkAll='Check All';
		var L_Username='Username';
		var L_Country='Country';
		var L_GuildChat='Guild Chat';
		var L_CountryChat='Country Chat';
		var L_GlobalChat='Global Chat';
		//Other
		var L_ID='Player\'s ID';
		var L_ratioTitle='Food Ratio | Price Ratio';
		var L_noGuildText='You dont have a Guild.<br>If you have one please go <a href='+GCAO_siteurl+'mod=guild&sh='+GCAO_secureCode+' >here</a> in order your stats be updated';
		var L_ReadyFor_expedition="You are ready for an expedition fight.";
		var L_ReadyFor_dungeon="You are ready for a dungeon fight.";
		var L_ReadyFor_arena="You are ready for an arena fight.";
		var L_ReadyFor_ct="You are ready for a circus turma fight.";
		var L_Redirect_Q="Do you want to be redirected there?";
		//Settings
		var L_GCASettings='Gladiatus Crazy Add On Settings';
		var L_HeaderSettings='Header Settings';
		var L_DisplayLinkButtons='Display link buttons on the header';
		var L_DisplayAuctionStatus='Display auction status on the header';
		var L_DisplayMerchantStatus='Add the merchant\'s auction status on the header';
		var L_DisplayOnlinePlayersButton='Display the "Online Players" button on the header';
		var L_DisplayLinkBox='Display the Link Box at the right of the page';
		var L_TimersSettings='Timers Settings';
		var L_DisplayLastBeingAttacked='Display the time passed from the last attack you took in Arena';
		var L_DisplayLastBeingAttacked2='Display the time passed from the last attack you took in Circus Turma';
		var L_AuctionSettings='Auction Settings';
		var L_FillAuctionPrices='Auto fill prices at auction';
		var L_ChangeItemsBgColor='Change the items\' background (based on quality) at auction';
		var L_AuctionMoreItemsLavels='More item levels at auction search box';
		var L_DisplayItemNumAndBids='Display the number of items and number of bids at auction';
		var L_DisplayItemList='Display an item list at auction\'s and market\'s search box';
		var L_ExpandAuctionTable3='Expand the auction table (3 items in every row)';
		var L_SimulatorSettings='Simulator Settings';
		var L_enSimulator='Enable PvP simulator on every player\'s profil';
		var L_setFightNum='Set number of simulated fights';
		var L_maximum='maximum';
		var L_guildSettings='Guild & Market Settings';
		var L_guildStoreInfo='Display info box at guild\'s storage';
		var L_moreGuildStats='Display more stats at guild\'s war camp for the guilds';
		var L_monsterSimulator='Display the training simulator at guild\'s training building';
		var L_gmailChanges='Enable guild mail changes';
		var L_ratioOpt='Display the "Ratio" value (food and price) of every item in the market';
		var L_enPriceRatio='Enable the price "Ratio" value (it is not very accurate)';
		var L_alertSettings='Alert Settings';
		var L_immedBuy='Display a confirmation box when you immediately buy an item from auction';
		var L_reduceTimeEx='Display a confirmation box when you pay a ruby to make an expedition';
		var L_questOpt='Inform me if i have a new quest available or display the remaining time';
		var L_forumMessageOpt='Inform me if i have a new forum message (with a [ ! ] next to forum link)';
		var L_weaponAlertOpt='Inform me if i do not wear a weapon (with a [ ! ] next to overview link)';
		var L_otherSettings='Other Settings';
		var L_msgchangesOpt='Enable message changes';
		var L_enBBCODE='Enable the BBCODE at messages';
		var L_enChat='Enable Chat (Guild, Country and Global)';
		var L_enRememberTabs='Remember your inventory\'s and merchant\'s tabs';
		var L_enImages='Enable custom player/guild image system';
		var L_disPackageCounters='Display the package counters';
		var L_disID='Display the ID of every player under his stats';
		var L_disHeal='Display the HEAL stat of every player under his stats';
		var L_disTrainingChages='Display basics and stat\'s maximum change when training';
		var L_enHighlight='Highlight items you can buy at merchants';
		var L_enStyleFixes='Apply style fixes';
		var L_speedSettings='Speed Settings';
		var L_stopPulling='Stop pulling info when the page loads (option for slow connections)';
		var L_willStop='This option will <font color="red"><b>stop</b></font>';
		var L_customCursor='Choose a custom cursor';
		var L_Save='Save';
		var L_AboutUs='About Us';
		var L_Settings='Settings';
		var L_donateTitle='Donate to Gladiatus Crazy Add On';
		var L_donateText='Thank us and also help us by donating some money in our PayPal account. By donating to our account you help us continue working on this add on which means more updates, new features and no bugs! Click the button to support us ';
		var L_description='Gladiatus Crazy Add On is a free add on that helps you with Gladiatus through the many features it gives. It actually uses better the info that the game server gives to your browser. Have fun with it and enjoy your fights!';
		var L_aboutTitle='About Gladiatus Crazy Add On';
		var L_descriptionTitle='Description';
		var L_Programmers='Programmers';
		var L_Translators='Translators';
		var L_Hostpage='Hostpage';
		var L_ContactUs='ContactUs';
		var L_Contact1='by e-mail at Apo59m@gmail.com or GreatApo@gmail.com';
		var L_Contact2='with message at our players in the greek servers (GreatApo at s1 and DarkThanos at s2) or french server (djor at s?)';
		var L_Contact3='or from the 3 open topics at the <a href="http://board.gladiatus.gr/index.php?page=Thread&threadID=12835" target="_blank">Greek</a>, <a target="_blank" href="http://board.gladiatus.fr/index.php?page=Thread&amp;threadID=37368">French</a> and <a target="_blank" href="http://board.gladiatus.us/index.php?page=Thread&amp;threadID=15543">USA</a> forum';
		var L_thanksTo='Many thanks to';
		var L_MonsterHunters='Monster stats/name hunters';
		var L_ItemHunters='Item hunters';
		var L_HideGoldInAuction='Color/Highlight the input if I can sell the item to the merchant at the same price than the bid';
		var L_guildSafeChanges='Enable guild safe changes';
		var L_guildMedicChanges='Show more info at the Medic center';
		var L_foodBackColor='Red background for the food items that gives more life points that needed (at overview)';
		var L_packageAlertOpt='Inform me if my packages are going to expire (12 hours before)';
		var L_bugSettings='Bug Settings';
		var L_showBugReports='Show bug reports';
		var L_autoReportBugs='Automatic report bugs to server';
		var L_showNewMessages='Show new messages';
		var L_MorePriceInfoInAuction='Show more price info';
		var L_CheckAffordInAuction='Show if the item can be bought (with &#10003; / &#10007;)';
		var L_allFilterAlert='Display a confirmation box at auction search when "Type of Object" is "All"';
		var L_BetterLife='Better life view';
		var L_fightReminder='Fight reminder';
		//v2.6.0
		var L_sentQuickMessageBox='Send a quick guild message';
		var L_send='Send';
		var L_merchants='Merchants';
		var L_QuestsInfo='Quests Info';
		var L_Takenquests='Taken quests';
		var L_Completedquests='Completed quests';
		var L_Failedquests='Failed quests';
		var L_InactiveQuests='Inactive Quests';
		var L_Workquests='Work quests';
		var L_Itemsquests='Items quests';
		var L_Expeditionquests='Expedition quests';
		var L_Dungeonquests='Dungeon quests';
		var L_Combatquests='Combat quests';
		var L_Arenaquests='Arena quests';
		var L_Turmaquests='Turma quests';
		var L_DisplayQuickMessageBox='Display quick guild message box';
		var L_DisplayDealerTimer='Display the merchants timer (goods renew)';
		var L_titleGenerate='Generate Signature Image';
		var L_clickToGenerate='Click the "Generate" button to generate an image with your stats!';
		var L_generate='Generate';
		var L_saveOnline='Save online';
		var L_uploadingImage='Uploading image to server';
		var L_searchUrl='Searching for url';
		var L_imageUrl='Image url';
		var L_imageNotFound='Image not found!';
		var L_calculateGuildUpgradeTitle='Calculate the gold per player base to the level';
		var L_Include='Include';
		var L_FixedGold='Fixed Gold';
		var L_GoldPerPlayer='Gold Per Player';
		var L_TargetGold='Target gold';
		var L_GoldInBank='Gold in bank';
		var L_notCalculated='not calculated';
		var L_Difference='Difference';
		var L_Attacks='Attacks';
		var L_Defences='Defences';
		var L_Friendly='Friendly';
		var L_GoldLimit='Gold Limit';
		//v2.6.1
		var L_guildLife='Guild Life';
		var L_addAll='+ All';
		var L_donateAll='Donate All';
		var L_visiteYourGuildsMemberPage='To sent a guild message you must first save your guild member\'s IDs.\nDo you want to do it now?';
		var L_Done='Done!';
		var L_ManageMercenaries='Manage Mercenaries';
		var L_name='Name';
		var L_protect='Protect';
		var L_leave='Leave';
		var L_selected='Selected';
		var L_itemsAreNotSaved='Items tooltips are not saved for this character\nYou must visit this players\'s profiel.';
		var L_mercenariesAreNotSaved='Mercenaries tooltips are not saved\nYou must visit your dungeon character\'s profil';
		var L_changeAuctionCompareItems='Change auction compare tooltips based to the select character';
		var L_notWearingAnItem='Not wearing an item';
		var L_notWearingAMercenary='Not wearing a mercenary';
		var L_setNumOfGuild='Number of guilds';
		//v2.8.0
		var L_playersGold='My gold';
		var L_time='time'
		var L_expedition='Expedition';
		var L_turma='Turma';
		var L_dungeon='Dungeon';
		var L_titleSettings='Page title settings';
		var L_enableTitle='Enable the custom page title';
		var L_showLogoTitle='Show the "Gladiatus" in the title';
		var L_showServerTitle='Also show the server and the country';
		var L_customTitleType='Select what else the title will show'
		var L_enableTitlePoints='Add the expendition/dungeon point next to the time';
		var L_cancelAll='Cancel All';
		var L_numberOfMyItems='Number of my items';
		var L_seeThisReport='See this report';
		var L_TopBar='Show the top bar when you scroll down';
		//v2.9.0
		var L_titleImages = 'Images settings';
		var L_showCustomsTitle = 'If a custome exists, show the costume and not the image';
		var L_collectGold='Collect Gold';
		var L_itemSearch='Item Search';
		var L_noteRenewMerchantsTime='If the merchants time has finished, new goods will come';
		var L_merchantsItems='Merchants Items';
		var L_auctionItems='Auction Items';
		var L_itemName='Item Name';
		break;
	}
	
	//Auction Status left/right images
	var img_left = '%3D';
	var img_right = '';
	//Link box tabs images
	var img_menutab1 = '';
	var img_menutab2 = '%3D';
	//Images
	var img_exclamation='';
	var img_gold='';
	var img_button4='%3D%3D';
	var img_msg='%3D%3D';
	var img_button3='%3D%3D';
	var img_donateButton='';
	
	//From left ot right
	if(GCAO_lang=='ae' || GCAO_lang=='ir' || GCAO_lang=='co.il'){
		var GCAO_left='right';
		var GCAO_right='left';
		var temp=img_left;
		img_left=img_right;
		img_right=temp;
		temp=img_menutab1;
		img_menutab1=img_menutab2;
		img_menutab2=temp;
		var invert_image_code="-moz-transform:scaleX(-1);-o-transform: scaleX(-1);-webkit-transform: scaleX(-1);transform: scaleX(-1);filter:FlipH;-ms-filter:'FlipH';";
		var training_symbol='«';
	}else{
		var GCAO_left='left';
		var GCAO_right='right';
		var invert_image_code='';
		var training_symbol='&#10784;';
	}
}
//################################################################################################################################
//## START (everything runs from here) / ΑΡΧΗ (από εδώ τρέχουν όλα)
//################################################################################################################################
if(document.getElementById('icon_rubies')){
	if(GM_getValue('BANNED_'+GCAO_server+'_'+GCAO_lang, false)==false){
		try{Main();}catch(e){DE(e);}
	}else{
		c(banFromUsingTheAddOn());
		document.getElementById('header_game').innerHTML+='<b style="text-shadow: 0 0 2px #000, 0 0 4px #000000;;color:red;margin-top:120px;margin-left:-500px;position:absolute;">! YOU ARE BANNED FROM USING GCA !</b>';
	}
}
else if(document.getElementById('p8_1_1') && document.getElementById('char_leben')){otherPlayerImage();}

function Main(){
	if(document.getElementById('footer_inner')){
		if(document.getElementById('footer_inner').getElementsByTagName('div')[0]){
			document.getElementById('footer_inner').getElementsByTagName('div')[0].innerHTML+=' | <a href="http://apo.users.uth.gr/gca/" target="_blank">GCA version: '+versionDotted+'</a>';
		}
	}
	if(document.getElementById('chat_icon')){
		document.getElementById('chat_icon').setAttribute('style','z-index:2;')
	}
	
	if(GCAO_mod=='settings'){
		if(document.location.href.match(/GCAO=SaveMePlease/i)){c(saveSettings());}
		c(PlayerImageSave());
		c(settings());
		document.getElementById("saveGCAOstats").addEventListener("click", saveMePlease, false);
	}
	if(document.getElementById('banner_top') && document.getElementById('banner_event') && (document.getElementById('banner_top').style.display=='' || document.getElementById('banner_top').style.display=='block')){c(moveAdd());}
	if(GM_getValue('lv', true) == true)
		c(FatLife());
	if(GM_getValue('bu', true) == true)
		c(Buttons());
	if(GM_getValue('au', true) == true)
		c(AuctionStatus());
	if(GM_getValue('sp', false) == false)
		c(GetOverviewStats());
	//if(GM_getValue('ch', true) == true)
	//	c(Chat());
	if(GM_getValue('pi', true) == true)
		c(RedirectPlayerImage());
	if(GM_getValue('op', true) == true && GCAO_mod!='inventory'){
		c(onlineGuildmates());
		document.getElementById("wio").addEventListener("click", ShowOnlineBox, false);
	}
	if(GM_getValue('pa', false) == true && GCAO_mod!='packages')
		c(expiredPackages(12));
	if(GM_getValue('fm', false) == true && GM_getValue('sp', false) == false)
		c(newForumMessage());
	if(GM_getValue('nq', true) == true && GCAO_mod!='quests')
		c(newQuest());
	if(GM_getValue('dt', true) == true && doc.getElementById("submenu1"))
		c(displayDealerTime());
	
	switch(GCAO_mod){
		case 'training':
			if(GM_getValue('ba', true) == true){
				c(basikes());
				c(addTrainingCostSimulator());
			}
			break;
		case 'quests':
			c(saveNewQuestTime());
			break;
		case 'overview':
			if(GCAO_submod=='stats'){c(morePlayerStats());}
			if(GCAO_submod=='noSubmod' || GCAO_submod=='fetchLoginBonus'){
				if(GM_getValue('dh', false) == true){
					if(document.getElementById('char_healing_tt')){document.getElementById('char_healing_tt').style.display="block";}
					if(document.getElementById('char_threat_tt')){document.getElementById('char_threat_tt').style.display="block";}
				}
				if(GM_getValue('lp', true) == true){c(canIeatThis());}
				c(manageMerchants());
				c(generateImage());
				window.addEventListener('click', rememberItems, false);
				c(inventoryInfo());c(resetInventoryInfo());
				c(exteendStats());
				c(share_button(1));
			}
			break;
		case 'player':
			if(GCAO_submod=='stats'){c(morePlayerStats());}
			else if(GCAO_submod=='noSubmod' && !document.location.href.match(/&doll=[2-6]/i)){
				if(GM_getValue('si', true) == true && GM_getValue('sp', false) == false){c(simulator());}
				if(GM_getValue('id', false) == true){c(showId());}
				if(GM_getValue('dh', false) == true){
					if(document.getElementById('char_healing_tt')){document.getElementById('char_healing_tt').style.display="block";}
					if(document.getElementById('char_threat_tt')){document.getElementById('char_threat_tt').style.display="block";}
				}
				c(exteendStats());
			}else if(GCAO_submod=='noSubmod' && document.location.href.match(/&doll=[2-6]/i)){
				c(showTheTypeOfTheFighter());
			}
			break;
		case 'arena':
			if(GCAO_submod=='noSubmod' || GCAO_submod=='grouparena'){
				c(arenaChanges());
				if(GCAO_submod=='grouparena'){c(saveGroupArenaStatus());}
			}
			break;
		case 'messages':
			if(GCAO_submod=='messageShow' || GCAO_submod=='messageMoveDelete'){
				c(banFromUsingTheAddOn());
				GM_setValue('numberOfNewMessages'+GCAO_lang+'_'+GCAO_server, 0);//Zero the new messages
				if(GM_getValue('ms', true) == true){
					c(messages());
					c(msgButtons());
				}
			}else if(GCAO_submod=='messageNew'){
				if(doc.getElementById('message'))
					doc.getElementById('message').focus();
			}
			break;
		case 'auction':
			if(GM_getValue('cb', true) == true){c(auctionbgcolor());}
			if(GM_getValue('an', true) == true){c(auctionnumbers());}
			if(GM_getValue('ml', true) == true){c(auctionitemlevel());}
			c(autoFillAuctionFields());
			if(GM_getValue('ca', true) == true){c(confirmRubies());}
			if(GM_getValue('ea', false) == true){c(auctionExtendTable());}
			if(GM_getValue('il', true) == true){c(itemList());}
			if(GM_getValue('fc', true) == true && document.getElementById('submitButton')){document.getElementById('submitButton').addEventListener('click', filterClick, false);}
			if(GM_getValue('ct', true) == true){c(auctionCompareTooltips());}
			break;
		case 'market':
			if(GM_getValue('il', true) == true){c(itemList());}
			if(GM_getValue('pr', true) == true){c(priceRatio());}
			break;
		case 'inventory':
			if(GM_getValue('hi', true) == true){c(afford());c(reAfford());}
			confirmGoodsRenew();
			c(saveDealerTime());
			window.addEventListener('click', rememberItems, false);
			c(inventoryInfo());c(resetInventoryInfo());
			c(extendedSearchSmall());
			break;
		case 'packages':
			GM_setValue('numberOfNewPackages'+GCAO_lang+'_'+GCAO_server, 0);//Zero the new packages
			if(GM_getValue('dc', true) == true){c(packetCounters());}
			break;
		case 'guild':
			if(GCAO_submod=='adminMail' && GM_getValue('mc', true) == true){c(guildMailChanges());}
			else if(GCAO_submod=='memberList'){
				if(document.location.href.match('targetGold')){c(calculateForGuildUpgrade());}
				else if(document.getElementById('mainnav').getElementsByTagName('li')[2]){
					c(saveGuildmatesIDs());c(moreMemberStats());
				}
			}
			else if(GCAO_submod=='buildings'){c(guildBuildings());}
			else if(GCAO_submod=='forumGladiatorius' && GM_getValue('pi', true) == true){c(guildImage());}
			else if(GCAO_submod=='adminDescription' || GCAO_submod=='adminDescriptionEdit'){c(GuildImageSave());}
			else if(GCAO_submod=='noSubmod'){
				if(!document.getElementById('content').getElementsByTagName('input')[0]){
					c(guildNameTake());
				}else{
					//c(makeAGuildApplication());
				}
			}
			break;
		case 'guild_storage':
			if(GM_getValue('st', true) == true){c(storageInfo());c(resetStorageInfo());}
			break;
		case 'guild_warcamp':
			if(GCAO_submod=='guild_member_reports'){
				c(warCampMemberGold());
				c(warCampMemberStyle());
			}
			else if(GCAO_submod=='guild_combat'){
				if(GCAO_allresult.match(/guildlife=on&gid=1/i)){c(guildLife());}
				if(GCAO_allresult.match(/gid=\d+/i) && GM_getValue('pi', true) == true){c(preReportGuildImage());}
			}
			else if(GCAO_submod=='guild_combatreports'){
				if(GCAO_allresult.match(/gcid=\d+/i) && GM_getValue('pi', true) == true){c(reportGuildImage());}
				else{c(betterGuildWarIcons());}
			}
			else if(GCAO_submod=='noSubmod' && GM_getValue('gg', true) == true){c(guildWarMoreStats());}
			break;
		case 'guild_training':
			if(GM_getValue('gs', true) == true && document.getElementById('mainnav').getElementsByTagName('li')[0]){
				c(training());
				if(document.location.href.match('make_simulator')){seeSimulator();}
			}
			break;
		case 'guild_market':
			if(GM_getValue('pr', true) == true){c(priceRatio());}
			c(cancelAll());
			break;
		case 'guildBankingHouse':
			if(GM_getValue('sc', true) == true){
				if(GCAO_submod=='noSubmod'){c(guildSafeEdit());}
				if(GCAO_submod=='showDonationLog'){c(guildSafeLog());}
			}
			break;
		case 'guild_bath':
			c(GCAnews());
			if(document.location.href.match('&GCAnews')){
				c(seeGCANews());
			}
			break;
		case 'guild_medic':
			if(GM_getValue('gm', true) == true){c(guildMedicBox());}
			c(guildLifeTab());
			break;
		case 'location':
			if(GM_getValue('ce', true) == true){c(expeditionConfirmRubies());}
			break;
		case 'reports':
			if(GCAO_submod=='showDungeons' || GCAO_allresult.match('t=-1') || GCAO_allresult.match('showExpeditions')){c(searchObjects());}
			if(GCAO_submod=='showCombatReport'){
				c(announceTheReportToGuild());
				if(GCAO_allresult.match('t=[2-3]')){
					c(share_button(2));
				}
			}
			break;
		case 'highscore':
			if(GCAO_submod=='suche'){
				if(GCAO_allresult.match('extendedSearch=on')){
					c(extendedSearch());
				}
			}
			break;
	}
	
	if((GM_getValue('at', false) == true || GM_getValue('kt', false) == true)&&doc.getElementById("submenu1"))
		c(lastTimeAttackedCounter());
	if(GM_getValue('fi', true) == true)
		c(styleFixes());
	if(GM_getValue('li', true) == true)
		c(links());
	if(GM_getValue('rt', true) == true)
		window.addEventListener('click', rememberTabs, false);
	if(GM_getValue('cu', 0)!=0)
		c(changeTheCursor());
	
	var d=new Date();
	if(GM_getValue('dayChecked', 0)!=d.getDate()){
		GM_setValue('dayChecked',d.getDate());
		c(checkForNews());
		c(checkForNewVersion());
	}else if(GM_getValue('newVersionAvailable', false)){
		c(checkForNewVersion());
	}
	
	if(GM_getValue('ShowNewsAlert', false)==true && doc.getElementById("submenu1"))
		c(showNewsAlert());
	if(GM_getValue('nm', false) == true)
		c(seeNewMessage());
	if(GM_getValue('fr', false) == true)
		c(alertForFightWhenReady());
	
	if(doc.getElementById("submenu1")){c(easyLinks());}
	else{c(whileTraveling());}
	
	if(GM_getValue('ta', true)){c(tabTitle());}
	
	
	if(GM_getValue('hb', true)){topScrollStatsBarSET();}
	
	var day=new Date();
	var finish_run_time=day.getTime();
	if(document.getElementById('footer_inner')){
		if(document.getElementById('footer_inner').getElementsByTagName('div')[0]){
			document.getElementById('footer_inner').getElementsByTagName('div')[0].innerHTML+=' (Run in '+(finish_run_time-start_run_time)+'ms)';
		}
	}
	
	//GoogleAnalitics
	if(navigator.userAgent.toLowerCase().match(/chrome/i)){
		var UA="UA-31451966-4";
	}else if(navigator.userAgent.toLowerCase().match(/opera/i)){
		var UA="UA-31451966-5";
	}else{
		var UA="UA-31451966-3";
	}
	
	(function(){
		var script=document.createElement('script');
		script.setAttribute("type","text/javascript");
		script.innerHTML=""+
			"var _gaq = _gaq || [];"+
			"_gaq.push(['_setAccount', '"+UA+"']);"+
			"_gaq.push(['_trackPageview']);"+
			"(function() {"+
			"	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;"+
			"	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';"+
			"	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);"+
			"})();";
		document.getElementsByTagName("head")[0].appendChild(script);
	})();
}

//################################################################################################################################
//## BUTTONS / ΚΟΥΜΠΙΑ
//################################################################################################################################
function Buttons(){
	var ph1a='%3D';
	var ph1b='';
	var ph1c='index.php?mod=guild&submod=adminMail&sh='+GCAO_secureCode;
	var ph2a='%3D%3D';
	var ph2b='%3D%3D';
	var ph2c='index.php?mod=guild_medic&sh='+GCAO_secureCode;
	var ph3a='%3D';
	var ph3b='';
	var ph3c='index.php?mod=guild_market&sh='+GCAO_secureCode;
	var ph4a='%3D';
	var ph4b='%3D';
	var ph6a='';
	var ph6b='%3D';
	var ph6c='index.php?mod=guild_storage&sh='+GCAO_secureCode;
	var ph7a='';
	var ph7b='%3D%3D';
	var ph7c='index.php?mod=guildBankingHouse&sh='+GCAO_secureCode;
	var ph8a='%3D';
	var ph8b='%3D';
	var ph8c='index.php?mod=guild_warcamp&sh='+GCAO_secureCode;
	var ph9a='%3D%3D';
	var ph9b='%3D%3D';
	var ph9c='index.php?mod=guild_jail&sh='+GCAO_secureCode;
	var ph10a='%3D';
	var ph10b='%3D';
	var ph10c='index.php?mod=guild_library&sh='+GCAO_secureCode;
	var ph11a='%3D';
	var ph11b='';
	var ph11c='index.php?mod=guild_training&sh='+GCAO_secureCode+'&make_simulator';
	
	//var ph5a='http://i617.photobucket.com/albums/tt260/goldisever/Apo/button.jpg';
	//var ph5b='http://i617.photobucket.com/albums/tt260/goldisever/Apo/button_hover.jpg';
	//var ph5c='index.php?mod=guild_main&submod=admin_mail&sh='+GCAO_secureCode;
	
	if(GCAO_mod=="messages"){var pad="12";}
	else{var pad="4";}
	
	//Will the "Quick guild message" be created?
	if(GM_getValue('qm', true)==false || GCAO_submod=='adminMail'){
		var mouseOv="";
		var qmsgBox="";
	}else{
		var mouseOv=" onmouseover=\"document.getElementById('qsmg').setAttribute('style','position:absolute;margin-left:1px;display:block;');\" onmouseout=\"document.getElementById('qsmg').setAttribute('style','position:absolute;margin-left:1px;display:none;');\"";
		var qmsgBox="<div id=\"qsmg\" class=\"title2_box\" style=\"position:absolute;display:none;\"><div class=\"title2_inner\" style=\"padding-left:"+pad+"px;\"><i>"+L_sentQuickMessageBox+":</i><br/><textarea id=\"messageText2\" value=\"\" style=\"height:80px;width:350px;margin-right:4px;\"></textarea>"+
		"<input id=\"sentqmButton\" value=\""+L_send+"\" class=\"button1\" type=\"submit\" name=\"sendmails\" style=\"margin-bottom:3px;\"/></div></div>";
	}
	//Make the buttons
	var ButtonsDiv = document.createElement('div');
	ButtonsDiv.setAttribute('id', 'ButtonsDiv');
	ButtonsDiv.setAttribute('style', 'position:absolute;z-index:501;top:114px;'+GCAO_left+':520px;');
	ButtonsDiv.innerHTML="<div style=\"display:none;\"><img src=\""+ph1b+"\"><img src=\""+ph2b+"\"><img src=\""+ph3b+"\"><img src=\""+ph4b+"\"><img src=\""+ph6b+"\"><img src=\""+ph7b+"\"><img src=\""+ph8b+"\"><img src=\""+ph9b+"\"><img src=\""+ph10b+"\"><img src=\""+ph11b+"\"></div>";
	ButtonsDiv.innerHTML+="<table cellspacing=\"0\" cellpadding=\"0\" style=\"border-spacing:0px;border:0px;\"><tr>" +
	"<td"+mouseOv+"><a href=\""+ph1c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildMailTitle+"\" src=\""+ph1a+"\" onmouseover=\"this.src='"+ph1b+"'\" onmouseout=\"this.src='"+ph1a+"'\"/></a>"+
	qmsgBox+"</td><td><div style=\"width:2px;\"></div></td>" +
	"<td><a href=\""+ph2c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildMedicTitle+"\" src=\""+ph2a+"\" onmouseover=\"this.src='"+ph2b+"'\" onmouseout=\"this.src='"+ph2a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td><a href=\""+ph3c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildMarketTitle+"\" src=\""+ph3a+"\" onmouseover=\"this.src='"+ph3b+"'\" onmouseout=\"this.src='"+ph3a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td><a href=\""+ph6c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildStorageTitle+"\" src=\""+ph6a+"\" onmouseover=\"this.src='"+ph6b+"'\" onmouseout=\"this.src='"+ph6a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td onmouseover=\"document.getElementById('allmoneytoguild').setAttribute('style','position:absolute;margin-left:1px;display:block;');\" onmouseout=\"document.getElementById('allmoneytoguild').setAttribute('style','position:absolute;margin-left:1px;display:none;');\"><a href=\""+ph7c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildSafeTitle+"\" src=\""+ph7a+"\" onmouseover=\"this.src='"+ph7b+"'\" onmouseout=\"this.src='"+ph7a+"'\"/></a><div id=\"allmoneytoguild\" class=\"title2_box\" style=\"position:absolute;display:none;\"><div class=\"title2_inner\" style=\"padding-left:"+pad+"px;\">"+
	"<input type=\"button\" id=\"doDonation\" value=\""+L_donateAll+"\" class=\"button1\" style=\"padding-left:-10px;\">"+
	"</div></div></td><td><div style=\"width:2px;\"></div></td>" +
	"<td><a href=\""+ph8c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildWarTitle+"\" src=\""+ph8a+"\" onmouseover=\"this.src='"+ph8b+"'\" onmouseout=\"this.src='"+ph8a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td><a href=\""+ph9c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildJailTitle+"\" src=\""+ph9a+"\" onmouseover=\"this.src='"+ph9b+"'\" onmouseout=\"this.src='"+ph9a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td><a href=\""+ph10c+"\"><img style=\"cursor:pointer;\" title=\""+L_guildLibraryTitle+"\" src=\""+ph10a+"\" onmouseover=\"this.src='"+ph10b+"'\" onmouseout=\"this.src='"+ph10a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td><a href=\""+ph11c+"\"><img style=\"cursor:pointer;\" title=\""+L_Simulator+"\" src=\""+ph11a+"\" onmouseover=\"this.src='"+ph11b+"'\" onmouseout=\"this.src='"+ph11a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td id='CaracterStats' title='"+L_staticsTitle+"'><a title=\"\" onclick=\"if(document.getElementById('StatsDiv').style.display=='block'){document.getElementById('StatsDiv').style.display='none'}else{document.getElementById('StatsDiv').style.display='block'}\"><img style=\"cursor:pointer;\" src=\""+ph4a+"\" onmouseover=\"this.src='"+ph4b+"'\" onmouseout=\"this.src='"+ph4a+"'\"/></a></td><td><div style=\"width:2px;\"></div></td>" +
	"<td></td>" +
	"</tr></table>";
	document.getElementById('header_game').appendChild(ButtonsDiv);
	//Is there a sent button?
	if(document.getElementById("sentqmButton")){
		document.getElementById("sentqmButton").addEventListener("click", sentAuctionGuildMessage, false);
	}
	if(GM_getValue('sp', false) == true){document.getElementById('CaracterStats').style.display='none';}
	//Make the donate button work
	document.getElementById("doDonation").addEventListener("click", donateToGuild, false);
	//Create the Players Stats box or the compare box
	if(GCAO_mod!='player'){
		var text='';
		for (x=1;x<=7;x++){
			text += "<tr><td id=\"Tran"+x+"\" class=\"Stats_Tran\"></td><td><div style=\"width:10px;\"></div></td><td> : </td><td><div style=\"width:10px;\"></div></td><td id=\"st_"+x+"\" class=\"Stats_Stat\"></td></tr>";
		}
		var StatsDiv = document.createElement('div');
		StatsDiv.setAttribute('id', 'StatsDiv');
		StatsDiv.setAttribute('style', 'display:none;opacity:0.8;position:absolute;z-index:501;top:148px;'+GCAO_left+':622px;border:1px solid #c0c0c0;background-color:#000000;color:#ffffff;padding:5px;');
		StatsDiv.innerHTML="<style>.Stats_Tran{text-align:"+GCAO_left+";font-weight:bold;}.Stats_Stat{text-align:right;}</style>" +
		"<div style=\"float:"+GCAO_right+";border:1px solid grey;background-color:#ffffff;color:#000000;width:15px;height:15px;line-height:13px;margin-top:-12px;margin-"+GCAO_right+":-12px;cursor:pointer;\" onclick=\"document.getElementById('StatsDiv').style.display='none'\"><center><b>x</b></center></div>" +
		"<table cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%;border-spacing:0px;border:0px;\">" +
		"<tr><td id=\"TranLIFE\" class=\"Stats_Tran\"></td><td><div style=\"width:10px;\"></div></td><td> : </td><td><div style=\"width:10px;\"></div></td><td id=\"st_LIFE\" class=\"Stats_Stat\"></td></tr>" +
		"<tr><td id=\"TranLEVEL\" class=\"Stats_Tran\"></td><td><div style=\"width:10px;\"></div></td><td> : </td><td><div style=\"width:10px;\"></div></td><td id=\"st_LEVEL\" class=\"Stats_Stat\"></td></tr>" +
		text+
		"<tr><td id=\"TranARMOR\" class=\"Stats_Tran\"></td><td><div style=\"width:10px;\"></div></td><td> : </td><td><div style=\"width:10px;\"></div></td><td id=\"st_ARMOR\" class=\"Stats_Stat\"></td></tr>" +
		"<tr><td id=\"TranDAMAGE\" class=\"Stats_Tran\"></td><td><div style=\"width:10px;\"></div></td><td> : </td><td><div style=\"width:10px;\"></div></td><td id=\"st_DAMAGE\" class=\"Stats_Stat\"></td></tr>" +
		"</table>";
		document.getElementById('header_game').appendChild(StatsDiv);
	}else{
		var top=496;
		if(document.getElementById('banner_top')){top=496+25;}
		var StatsDiv = document.createElement('div');
		StatsDiv.setAttribute('id', 'StatsDiv');
		StatsDiv.setAttribute('style', 'display:none;opacity:0.95;position:absolute;z-index:501;top:'+top+'px;'+GCAO_left+':605px;');
		StatsDiv.innerHTML='<div style="background-image:url(http://s1.gladiatus.gr/game/img/char_status_kopf_b.jpg);width:100px;height:5px;overflow:hidden"></div>'+
			'<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value22_mirrored" id="st_LEVEL"></div>'+
			'</div>'+
			'<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_LIFE"></div>'+
			'</div>'+
			'<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_1"></div>'+
			'</div>'+
			'<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_2"></div>'+
			'</div>'+
			'	<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_3"></div>'+
			'</div>'+
			'	<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_4"></div>'+
			'</div>'+
			'	<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_5"></div>'+
			'</div>'+
			'	<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_6"></div>'+
			'</div>'+
			'	<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value3_mirrored" id="st_7"></div>'+
			'</div>'+
			'<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value22_mirrored" id="st_ARMOR"></div>'+
			'</div>'+
			'<div class="charstats_bg2" style="width:100px;">'+
			'	<div class="charstats_value22_mirrored" id="st_DAMAGE"></div>'+
			'</div>'+
			'<div style="clear:both;background-image:url(http://s1.gladiatus.gr/game/img/char_status_abschluss_b.jpg);width:100px;height:5px;overflow:hidden"></div>';
	
		document.getElementById('header_game').appendChild(StatsDiv);
	}
}
//Donate to guild
function donateToGuild(){
	var loadingImage="%3D";
	//Take player's Gold
	var myGold=document.getElementById('sstat_gold_val').innerHTML.replace(/ /g,'').replace(/\./g,'');
	document.getElementById('sstat_gold_val').innerHTML+='<img src="'+loadingImage+'" style="position:absolute;margin-top:6px;'+GCAO_left+':30px;opacity:0.5;"/>';
	//Post to the server
	var code= 'donation='+myGold+'&doDonation=Donate All';
	GM_xmlhttpRequest({
		method: "POST",
		url: GCAO_siteurl+'mod=guildBankingHouse&submod=donate&sh='+GCAO_secureCode,
		headers: {
		'Host': GCAO_siteurl.replace('http://','').replace('/game/index.php?',''),
		'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; el; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
		'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
		'Accept-Language': 'el-gr,el;q=0.8,en-us;q=0.5,en;q=0.3',
		'Accept-Encoding': 'gzip,deflate',
		'Accept-Charset': 'ISO-8859-7,utf-8;q=0.7,*;q=0.7',
		'Keep-Alive': '115',
		'Connection': 'keep-alive',
		'Referer': GCAO_siteurl.replace('game/index.php?',''),
		'Content-Type': 'application/x-www-form-urlencoded'
		},
		data : code,
		onload: function(response){
			document.getElementById('doDonation').value=L_Done;
			document.getElementById('sstat_gold_val').innerHTML=0;
		}
	});
}

//################################################################################################################################
//## AUCTION STATUS / ΚΑΤΑΣΤΑΣΗ ΔΗΜΟΠΡΑΤΗΡΙΟΥ
//################################################################################################################################
function AuctionStatus(){
	var loadingImage="%3D";
	var img_center = '%3D';
	var AuctionStatusDiv = document.createElement('div');
	AuctionStatusDiv.setAttribute('id', 'AuctionStatusDiv');
	AuctionStatusDiv.setAttribute('style', 'position:absolute;z-index:10;top:111px;'+GCAO_right+':110px;');
	AuctionStatusDiv.innerHTML="<table cellspacing=\"0\" cellpadding=\"0\" style=\"border-spacing:0px;border:0px;\"><tr><td style=\"width:20px;height:30px;background: transparent url('"+img_left+"') no-repeat;\"></td><td style=\"height:30px;background: transparent url('"+img_center+"') repeat-x;\"><span id=\"AuctionStatus\" style=\"line-height:13px;\"><table style='font-size:11px;line-height:9px;'><tr><td id='A1'><img style=\"margin-top:6px;margin-"+GCAO_left+":2px;opacity:0.5;\" src=\""+loadingImage+"\"/></td></tr><tr><td id='A2'></td></tr></table></td><td style=\"width:20px;height:30px;background: transparent url('"+img_right+"') no-repeat;\"></td></tr></table>";
	document.getElementById('header_game').appendChild(AuctionStatusDiv);
	
	if(doc.getElementById("submenu1")){
		GM_xmlhttpRequest({
			method: "GET",
			url: GCAO_siteurl + 'mod=auction&sh=' + GCAO_secureCode + '&fl=160',
			onload: function(response){
				if(!response.responseText.match('bx0')){
					var AuctionTranslation = response.responseText.match('class="submenuitem_aktive" target="_self">([^<]+)</a>')[1];
					var Status = response.responseText.match('class="description_span_right"><b>(\.+)</b></span>')[1];
					document.getElementById('A1').innerHTML = AuctionTranslation + " : <b>" + Status + "</b>";
				}
			}
		});
		if(GM_getValue('sa', true) == true){
			GM_xmlhttpRequest({
				method: "GET",
				url: GCAO_siteurl + 'mod=auction&ttype=3&sh=' + GCAO_secureCode + '&fl=160',
				onload: function(response){
					if(!response.responseText.match('bx0')){
						var AuctionTranslation = response.responseText.match('class="pngfix  current" style="cursor:pointer;">([^<]+)</a></li></ul>')[1];
						var Status = response.responseText.match('class="description_span_right"><b>(\.+)</b></span>')[1];
						document.getElementById('A2').innerHTML=AuctionTranslation+" : <b>"+Status+"</b>";
					}
				}
			});
		}
	}else{
		document.getElementById('A1').innerHTML = 'N/A';
	}
}

//################################################################################################################################
//## ALL STATS FROM OVERVIEW / ΟΛΑ ΤΑ ΣΤΑΤΙΣΤΙΚΑ ΑΠΟ ΠΡΟΕΠΙΣΚΟΠΗΣΗ
//################################################################################################################################
function GetOverviewStats(){
	GM_xmlhttpRequest({
		method: "GET",
		url: UrlOverview,
		onload: function(response){
			if(response.responseText.match(/playername.achievement.>([^<]+)<\/div>/i)){
				var playername=response.responseText.match(/playername.achievement.>([^<]+)<\/div>/i)[1];
				Set_Cookie('playerName',playername,1);
			}
			
			var life = response.responseText.match(/id="char_leben" class="charstats_value">(\d+) %<\/span>/i)[1]*1;
			var exactLife = response.responseText.match(/onmouseover="return escape\((.+)nowrap.'>(\d+) \/ (\d+)/i);
			var exactLifeA = exactLife[2];
			var exactLifeB = exactLife[3];
			var TranLife = document.getElementById('header_values_hp_bar').getAttribute('onmouseover').match(/nowrap.'>([^:<]+):<\/td>/i)[1];
			
			var TranLevel = response.responseText.match('charstats_value21">([^<]+)</span>')[1];
			var Level = response.responseText.match('charstats_value22">([^<]+)</span>')[1];

			var TranStats = response.responseText.match(/charstats_text">([^<]+)<\/span>/gi);
			var Stats = response.responseText.match(/charstats_value">([^<]+)<\/span>/gi);
			var allstat = new Array();
			var allstat2 = new Array();
			
			if(document.getElementById('ButtonsDiv')){
				for (x=1;x<=7;x++){
					allstat2[x] = TranStats[x].match(/charstats_text">([^<]+)<\/span>/i)[1];
					allstat[x] = Stats[x].match(/charstats_value">([^<]+)<\/span>/i)[1];
					if(document.getElementById('Tran'+x)){
						document.getElementById('Tran'+x).innerHTML=allstat2[x];
					}
					document.getElementById('st_'+x).innerHTML=allstat[x];
				}
			}
			else{
				for (x=1;x<=7;x++){
					allstat2[x] = TranStats[x].match(/charstats_text">([^<]+)<\/span>/i)[1];
					allstat[x] = Stats[x].match(/charstats_value">([^<]+)<\/span>/i)[1];
				}
			}
			
			var TranStats2 = response.responseText.match(/charstats_value21">([^<]+)<\/span>/gi);
			var TranARMOR = TranStats2[1].match(/charstats_value21">([^<]+)<\/span>/i)[1];
			var TranDAMAGE = TranStats2[2].match(/charstats_value21">([^<]+)<\/span>/i)[1];
			
			var Stats2 = response.responseText.match(/charstats_value22">([^<]+)<\/span>/gi);
			var ARMOR = Stats2[1].match(/charstats_value22">([^<]+)<\/span>/i)[1];
			var DAMAGE = Stats2[2].match(/charstats_value22">([^<]+)<\/span>/i)[1];
			
			var DamageMin=DAMAGE.match(/(\d+)...(\d+)/i)[1];
			var DamageMax=DAMAGE.match(/(\d+)...(\d+)/i)[2];
			
			var resistance=response.responseText.match(/\d+ %/gi)[2].match(/(\d+)/i)[1];
			var block=response.responseText.match(/\d+ %/gi)[3].match(/(\d+)/i)[1];
			var critDamage=response.responseText.match(/\d+ %/gi)[4].match(/(\d+)/i)[1];
			
			var ChanceOfAvoidCriticalHits=response.responseText.match(/>\d+ %/gi)[1].match(/(\d+)/i)[1];
			var ChanceToBlockAHit=response.responseText.match(/>\d+ %/gi)[2].match(/(\d+)/i)[1];
			var ChanceForCriticalDamage=response.responseText.match(/>\d+ %/gi)[3].match(/(\d+)/i)[1];
			
			if(document.getElementById('ButtonsDiv')){
				if(document.getElementById('TranLIFE')){
					document.getElementById('TranLIFE').innerHTML=TranLife;
					document.getElementById('TranLEVEL').innerHTML=TranLevel;
					document.getElementById('TranARMOR').innerHTML=TranARMOR;
					document.getElementById('TranDAMAGE').innerHTML=TranDAMAGE;
				}
				document.getElementById('st_LIFE').innerHTML=life+' %';
				document.getElementById('st_LEVEL').innerHTML=Level;
				document.getElementById('st_ARMOR').innerHTML='<font size="1">('+ChanceOfAvoidCriticalHits+'%/'+ChanceToBlockAHit+'%)</font> '+ARMOR;
				document.getElementById('st_DAMAGE').innerHTML='<font size="1">('+ChanceForCriticalDamage+'%)</font> '+DAMAGE;
			}
			
			var LifePointsLeft=exactLifeA;var Strength=allstat[2];var Skill=allstat[3];var Agility=allstat[4];var Constitution=allstat[5];var Charisma=allstat[6];var Armour=ARMOR;
			var code=''+
			"##"+Level+
			"##"+LifePointsLeft+
			"##"+Strength+
			"##"+Skill+
			"##"+Agility+
			"##"+Constitution+
			"##"+Charisma+
			"##"+Armour+
			"##"+DamageMin+
			"##"+DamageMax+
			"##"+ChanceOfAvoidCriticalHits+
			"##"+ChanceToBlockAHit+
			"##"+ChanceForCriticalDamage;
			
			//alert(code);
			Set_Cookie('simstats',code);
			
			if(response.responseText.match(/AddCharDiv..p3_1_1.[^"]+""/i) && GM_getValue('wd', false) == true){
				document.getElementById('mainmenu').getElementsByTagName('a')[0].innerHTML+=' <img src="'+img_exclamation+'" style="position:absolute;margin-'+GCAO_left+':10px;margin-top:1px;opacity: 0.65;" onmouseout="this.style.opacity=\'0.65\';document.getElementById(\'warningWeapon\').style.display=\'none\';" onmouseover="this.style.opacity=\'1\';document.getElementById(\'warningWeapon\').style.display=\'block\';">';
				var warningTip = document.createElement('div');
				warningTip.setAttribute('id', 'warningWeapon');
				warningTip.setAttribute('style', 'opacity: 0.75;display:none;width:180px;z-index:502;position:absolute;top:179px;'+GCAO_left+':345px;border:1px solid grey;background-color:black;color:#c0c0c0;font-weight:bold;height:24px;line-height:24px;padding-left:5px;padding-right:5px;')
				warningTip.innerHTML = L_weaponAlert;
				document.getElementById('header_game').appendChild(warningTip);
			}
		}
	});
}

//################################################################################################################################
//## SHARE BUTTONS
//################################################################################################################################
function share_button(x){
	if(x==1){//overview
		var i=0;
		var found=false;
		while(doc.getElementById('content').getElementsByTagName('div')[i] && !found && i<=500){
			if(doc.getElementById('content').getElementsByTagName('div')[i].getAttribute('class')=='contentItem_content'){
				if(doc.getElementById('content').getElementsByTagName('div')[i].innerHTML.match('mod=player')){
					var found=true;
					var link=doc.getElementById('content').getElementsByTagName('div')[i].innerHTML.match(/<b>([^<]+)<\/b>/i)[1];
					
					var newElement = document.createElement('a');
					newElement.setAttribute('name','fb_share');
					newElement.setAttribute('type','button');
					newElement.setAttribute('style','margin-'+GCAO_left+':450px;margin-top:-20px;position:absolute;');
					newElement.setAttribute('share_url',link);
					doc.getElementById('content').getElementsByTagName('div')[i].appendChild(newElement);
					
					var newElement = document.createElement('script');
					newElement.setAttribute('src','http://static.ak.fbcdn.net/connect.php/js/FB.Share');
					newElement.setAttribute('type','text/javascript');
					doc.getElementById('content').getElementsByTagName('div')[i].appendChild(newElement);
				}
			}
			i++;
		}
	}else if(x==2){//Report
		var newElement = document.createElement('input');
		newElement.setAttribute('class','button1');
		newElement.setAttribute('type','submit');
		newElement.setAttribute('id','facebool1button');
		newElement.setAttribute('value','Share Report');
		//if(navigator.userAgent.toLowerCase().match(/chrome/i)){
		//	newElement.setAttribute('style','margin-'+GCAO_left+':250px;margin-top:-67px; position: absolute; ');
		//}else{
			newElement.setAttribute('style','margin-'+GCAO_left+':-250px;margin-top:-68px; position: absolute; ');
		//}
		if(doc.getElementById("reportHeader")){
			doc.getElementById('reportHeader').appendChild(newElement);
			document.getElementById("facebool1button").addEventListener("click", saveTextOnline, false);
		}
	}
}

function saveTextOnline(){
	document.getElementById("facebool1button").setAttribute('value','Loading options...');

	var content=encodeURIComponent(GCAO_siteurl.replace('game/index.php?','')+'#'+doc.getElementById('content').innerHTML.replace(/onmouseover=[^)]+/gi,''));
	var code= 'tdomf_form_id=1&redirect=/#tdomf_form1&tdomf_form1_send=Speichern/Save&content-text-ta='+content;
	GM_xmlhttpRequest({
		method: "POST",
		url: 'http://textsave.de/wp-content/plugins/tdo-mini-forms/tdomf-form-post.php',
		headers: {
		'Host': 'textsave.de',
		'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; el; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
		'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
		'Accept-Language': 'el-gr,el;q=0.8,en-us;q=0.5,en;q=0.3',
		'Accept-Encoding': 'gzip,deflate',
		'Accept-Charset': 'ISO-8859-7,utf-8;q=0.7,*;q=0.7',
		'Keep-Alive': '115',
		'Connection': 'keep-alive',
		'Referer': 'http://textsave.de/',
		'Content-Type': 'application/x-www-form-urlencoded'
		},
		data : code,
		onload: function(response){
			var number=response.responseText.match(/<h3>http:\/\/textsave\.de\/.p=(\d+)<\/h3>/i)[1];
			
			document.getElementById("facebool1button").setAttribute('style','display:none;');
			
			var newElement = document.createElement('a');
			newElement.setAttribute('name','fb_share');
			newElement.setAttribute('type','button');
			newElement.setAttribute('style','margin-'+GCAO_left+':-250px;margin-top:-64px;position:absolute;');
			newElement.setAttribute('share_url','http://apo.users.uth.gr/gca/index.php?type=fightreport&repcont='+number);
			doc.getElementById('reportHeader').appendChild(newElement);

			var newElement = document.createElement('script');
			newElement.setAttribute('src','http://static.ak.fbcdn.net/connect.php/js/FB.Share');
			newElement.setAttribute('type','text/javascript');
			doc.getElementById('content').appendChild(newElement);
		}
	});
}

//################################################################################################################################
//## PLAYER'S IMAGE / ΕΚΟΝΑ ΠΑΙΧΤΗ
//################################################################################################################################
function RedirectPlayerImage(){//alert(GCAO_mod+' , '+GCAO_submod+' , '+GCAO_allresult.match(/t=[23]/i));
	if(GCAO_mod=='overview' && GCAO_submod=='noSubmod' && (GCAO_allresult.match(/doll=[1-2]/i) || !GCAO_allresult.match(/doll/i))){
		myPlayerImage();}
	else if(GCAO_mod=='player' && GCAO_submod=='noSubmod' && GCAO_allresult.match(/p=/i) && (GCAO_allresult.match(/doll=2/i) || !GCAO_allresult.match(/doll/i))){
		otherPlayerImage();}
	else if(GCAO_mod=='reports' && GCAO_submod=='showCombatReport' && GCAO_allresult.match(/t=[23]/i)){
		reportPlayerImage();}
	else if(GCAO_mod=='reports' && GCAO_submod=='showCombatReport' && GCAO_allresult.match(/t=[014]/i)){
		report0PlayerImage();}
}

function myPlayerImage(){
	if(GM_getValue('PlayerImage' + window.location.host, '')!=''){
		var img_Player=GM_getValue('PlayerImage' + window.location.host, '');
		onePlayerImage(img_Player);
	}
}

function otherPlayerImage(){
	if(doc.getElementById('content').innerHTML.match(/##GTI=/i)){
		var img_Player=doc.getElementById('content').innerHTML.match(/##GTI=([^#]+)##/i)[1];
		onePlayerImage(img_Player);
	}
}

function onePlayerImage(img_Player){
	var img_style='width: 168px; height: 194px; margin-left: auto; margin-right: auto;background-image:url(\''+img_Player+'\');background-repeat:no-repeat;-moz-background-size: 100% 100%;-o-background-size: 100% 100%;-webkit-background-size: 100% 100%;background-size: 100% 100%;';
		
	var i=0;
	var found=false;
	while(doc.getElementById('content').getElementsByTagName('div')[i] && !found && i<=50){
		if(doc.getElementById('content').getElementsByTagName('div')[i].getAttribute('class')=='player_picture'){
			var found=true;
			if(doc.getElementById('content').getElementsByTagName('div')[i+1].getAttribute('class')=='avatar'){
				doc.getElementById('content').getElementsByTagName('div')[i+1].setAttribute('style',img_style);
			}else{
				var newPlImg = document.createElement('div');
				newPlImg.setAttribute('class','avatar');
				newPlImg.setAttribute('style',img_style);
				doc.getElementById('content').getElementsByTagName('div')[i].appendChild(newPlImg);
			}
		}
		i++;
	}
	
	if(GM_getValue('cm', false) != true){
		var newPlImg = document.createElement('style');
		newPlImg.innerHTML = '.avatar_costume_part{display:none;}';
		document.getElementById('content').appendChild(newPlImg);
	}
}

function report0PlayerImage(){
	if(GM_getValue('PlayerImage' + window.location.host, '')!='' && doc.getElementById('attackerAvatar1')){
		var img_Player=GM_getValue('PlayerImage' + window.location.host, '');
		if(doc.getElementById('attackerAvatar1').getElementsByTagName('div')[4]){
			doc.getElementById('attackerAvatar1').getElementsByTagName('div')[4].setAttribute('id','PlayerImage');
		}else{
			doc.getElementById('attackerAvatar1').getElementsByTagName('div')[2].setAttribute('id','PlayerImage');
		}
		
		if(GM_getValue('cm', false) != true){
			doc.getElementById('PlayerImage').setAttribute('class','avatar');
			var newPlImg = document.createElement('style');
			newPlImg.innerHTML = '.avatar_costume_part{display:none;}';
			document.getElementById('content').appendChild(newPlImg);
			
			doc.getElementById('PlayerImage').setAttribute('style','background-image: url(\''+img_Player+'\'); width: 168px; height: 194px; margin-left: auto; margin-right: auto;background-repeat:no-repeat;-moz-background-size: 100% 100%;-o-background-size: 100% 100%;-webkit-background-size: 100% 100%;background-size: 100% 100%;');
		}
	}
	
	if(doc.getElementById('attackerFighterImage2')){
		fixBackToPlayerStats('attacker');
	}
}

function reportPlayerImage(){
	if(doc.getElementById('content').getElementsByTagName('script')[1]){
		var resultHit=doc.getElementById('content').getElementsByTagName('script')[1].previousSibling.previousSibling.previousSibling.previousSibling.innerHTML;
		if(resultHit.match(/p=\d+/g)[0]){
			var p1=resultHit.match(/p=\d+/g)[0];p1=p1.replace('p=','');
			var link1=GCAO_siteurl+'mod=player&p='+p1;
			GM_xmlhttpRequest({
				method: "GET",
				url: link1,
				onload: function(response){
					if(response.responseText.match(/##GTI=/i)){
						var img_Player1=response.responseText.match(/##GTI=([^#]+)##/i)[1];
						var x=3;
						if(doc.getElementById('attackerAvatar1')){
							if(doc.getElementById('attackerAvatar1').getElementsByTagName('div')[x-1].getAttribute('class')=="achievementtitle"){x=4;}
							doc.getElementById('attackerAvatar1').getElementsByTagName('div')[x].setAttribute('id','PlayerImage1');
							
							if(GM_getValue('cm', false) != true){
								doc.getElementById('PlayerImage1').setAttribute('style','background-image: url(\''+img_Player1+'\'); width: 168px; height: 194px; margin-left: auto; margin-right: auto;background-repeat:no-repeat;-moz-background-size: 100% 100%;-o-background-size: 100% 100%;-webkit-background-size: 100% 100%;background-size: 100% 100%;');
								doc.getElementById('PlayerImage1').setAttribute('class','avatar');
								
								var lim = doc.getElementById('attackerAvatar1').getElementsByTagName('div').length-1;
								for(var i=0; i<=lim; i++){
									if(doc.getElementById('attackerAvatar1').getElementsByTagName('div')[i].getAttribute('class')=='avatar avatar_costume_part'){
										doc.getElementById('attackerAvatar1').getElementsByTagName('div')[i].setAttribute('class','avatar avatar_costume_part1');
									}
								}
								
								var newPlImg = document.createElement('style');
								newPlImg.innerHTML = '.avatar_costume_part1{display:none;}';
								document.getElementById('content').appendChild(newPlImg);
							}
						}
					}
				}
			});
		}
		if(resultHit.match(/p=\d+/g)[1]){
			var p11=resultHit.match(/p=\d+/g)[1];p11=p11.replace('p=','');
			var link11=GCAO_siteurl+'mod=player&p='+p11;
			GM_xmlhttpRequest({
				method: "GET",
				url: link11,
				onload: function(response){
					if(response.responseText.match(/##GTI=/i)){
						var img_Player11=response.responseText.match(/##GTI=([^#]+)##/i)[1];
						var x=3;
						if(doc.getElementById('defenderAvatar11')){
							if(doc.getElementById('defenderAvatar11').getElementsByTagName('div')[x-1].getAttribute('class')=="achievementtitle"){x=4;}
							doc.getElementById('defenderAvatar11').getElementsByTagName('div')[x].setAttribute('id','PlayerImage11');
							
							if(GM_getValue('cm', false) != true){
								doc.getElementById('PlayerImage11').setAttribute('style','background-image: url(\''+img_Player11+'\'); width: 168px; height: 194px; margin-left: auto; margin-right: auto;background-repeat:no-repeat;-moz-background-size: 100% 100%;-o-background-size: 100% 100%;-webkit-background-size: 100% 100%;background-size: 100% 100%;');
								doc.getElementById('PlayerImage11').setAttribute('class','avatar');
								
								var lim = doc.getElementById('defenderAvatar11').getElementsByTagName('div').length-1;
								for(var i=0; i<=lim; i++){
									if(doc.getElementById('defenderAvatar11').getElementsByTagName('div')[i].getAttribute('class')=='avatar avatar_costume_part'){
										doc.getElementById('defenderAvatar11').getElementsByTagName('div')[i].setAttribute('class','avatar avatar_costume_part11');
									}
								}
								
								var newPlImg = document.createElement('style');
								newPlImg.innerHTML = '.avatar_costume_part11{display:none;}';
								document.getElementById('content').appendChild(newPlImg);
							}
						}
					}
				}
			});
		}
	}
	
	if(doc.getElementById('attackerFighterImage2')){
		fixBackToPlayerStats('attacker');
	}
	if(doc.getElementById('defenderFighterImage12')){
		fixBackToPlayerStats('defender');
	}
}


function fixBackToPlayerStats(attacker){
	//Fix the player's change image in group fights
	if(attacker=='defender'){var one=1;}else{var one='';}
	
	if(doc.getElementById(attacker+'Avatar'+one+'1').getElementsByTagName('div')[4]){var x=4;}
	else{var x=3;}
	
	var img_back='';
	document.getElementById(attacker+'FighterImage'+one+'2').parentNode.setAttribute('style','position:absolute; left:0%; bottom:5%; width:100%; z-index: 200;');
	
	var newPlImg = document.createElement('img');
	newPlImg.setAttribute('id',attacker+'FighterImage'+one+'1');
	newPlImg.setAttribute('onclick','toggleFighterStat('+one+'1, \''+attacker+'\', '+one+'1)');
	newPlImg.setAttribute('src',img_back);
	newPlImg.setAttribute('style','padding-left: 0px; bottom:0px; width:28px; height:33px; cursor: pointer;');
	document.getElementById(attacker+'FighterImage'+one+'2').parentNode.appendChild(newPlImg);
	
	for(var i=2; i<=5; i++){
		if(doc.getElementById(attacker+'FighterImage'+one+''+i)){
			var temp=doc.getElementById(attacker+'FighterImage'+one+''+i).getAttribute('style');
			temp=temp.replace('20%','17%').replace('2px','0px');;
			doc.getElementById(attacker+'FighterImage'+one+''+i).setAttribute('style',temp);
		}
	}
}

//################################################################################################################################
//## SAVE PLAYER'S IMAGE / ΑΠΟΘΗΚΕΥΣΗ ΕΙΚΟΝΑΣ ΠΑΙΧΤΗ
//################################################################################################################################
function PlayerImageSave(){
	if(document.getElementById('rpg')){
		document.getElementById('content').getElementsByTagName('form')[0].setAttribute('action','index.php?mod=settings&submod=edit&img=save&sh='+GCAO_secureCode);
		
		var perigrafi = document.getElementById('rpg').innerHTML;
		if (perigrafi.match(/\[f c\=#DED2AD\]\[f s\=10\]##GTI\=(.*)##\[\/f\]\[\/f\]/i)){
			var link = perigrafi.match(/\[f c\=#DED2AD\]\[f s\=10\]##GTI\=(.*)##\[\/f\]\[\/f\]/i);
			document.getElementById('rpg').innerHTML = perigrafi.replace(link[0], '');
			link = link[1];
		}
		else if(perigrafi.match(/\[f c\=#E5D9BD\]\[f s\=10\]##GTI\=(.*)##\[\/f\]\[\/f\]/i)){
			var link = perigrafi.match(/\[f c\=#E5D9BD\]\[f s\=10\]##GTI\=(.*)##\[\/f\]\[\/f\]/i);
			document.getElementById('rpg').innerHTML = perigrafi.replace(link[0], '');
			link = link[1];
		}
		else{var link = '';}
		
		if(document.location.href.match(/img\=save/)){
			GM_setValue('PlayerImage' + window.location.host, link);
		}
		
		var newPlImg = document.createElement('span');
		newPlImg.setAttribute('id', 'ChangePlImg')
		newPlImg.innerHTML = '<br><b>'+L_changePlayerImage+':</b><p><input id="ImageUrl" size="73" style="width:460px;" value="' + link + '"></p>';
		document.getElementById('content').getElementsByTagName('div')[10].appendChild(newPlImg);
		
		document.getElementsByTagName('form')[0].setAttribute('onsubmit',"if(document.getElementById('ImageUrl').value!=''){document.getElementById('rpg').value = document.getElementById('rpg').value + '[f c=#DED2AD][f s=10]##GTI=' + document.getElementById('ImageUrl').value + '##[/f][/f]';document.getElementById('rpg').innerHTML = document.getElementById('rpg').value + '[f c=#DED2AD][f s=10]##GTI=' + document.getElementById('ImageUrl').value + '##[/f][/f]';}");
		
		document.getElementById('toggleLinkColor').removeAttribute('class');
		document.getElementById('toggleLinkColor').removeAttribute('href');
		document.getElementById('toggleLinkColor').setAttribute('onclick',"if(document.getElementById('togglePanelColor').style.display=='block'){document.getElementById('togglePanelColor').style.display='none'}else{document.getElementById('togglePanelColor').style.display='block'}");
		document.getElementById('togglePanelColor').setAttribute('onclick','document.getElementById(\'togglePanelColor\').style.display=\'none\';');
		document.getElementById('rpg').setAttribute('onclick','document.getElementById(\'togglePanelColor\').style.display=\'none\';');
		
		var tran_Char=document.getElementById('content').innerHTML.match(/\(\d+ ([^)]+)\)/i)[1];
		var charNum=document.getElementById('rpg').innerHTML.length+document.getElementById('ImageUrl').value.length;
		var charCounter = document.createElement('div');
		charCounter.setAttribute('id', 'charCounterDiv')
		charCounter.innerHTML='<span id="charCounter">'+charNum+'</span>/4000 '+tran_Char+' <span id="ImageProblem" style="display:none;color:red;">'+L_Overfloated+':<br> - '+L_plImageWillBeLost+'.<br> - '+L_plDecriptionWillBeCut+'.</span>';
		var location = document.getElementById('rpg');
		location.parentNode.insertBefore(charCounter, location);
		
		document.getElementById('rpg').setAttribute('onkeyup','if(document.getElementById(\'ImageUrl\').value.length>0){var addin=37;}else{var addin=0;}var x=document.getElementById(\'rpg\').value.length+document.getElementById(\'ImageUrl\').value.length+addin;document.getElementById(\'charCounter\').innerHTML=\'\'+x;if(x>4000){document.getElementById(\'ImageProblem\').style.display=\'block\'}else{document.getElementById(\'ImageProblem\').style.display=\'none\'}');
		document.getElementById('ImageUrl').setAttribute('onkeyup','if(document.getElementById(\'ImageUrl\').value.length>0){var addin=37;}else{var addin=0;}var x=document.getElementById(\'rpg\').value.length+document.getElementById(\'ImageUrl\').value.length+addin;document.getElementById(\'charCounter\').innerHTML=\'\'+x;if(x>4000){document.getElementById(\'ImageProblem\').style.display=\'block\'}else{document.getElementById(\'ImageProblem\').style.display=\'none\'}');

		var defaultImagesBox = document.createElement('span');
		defaultImagesBox.innerHTML = '<input type="button" id="DisplayDefaultImages" class="button1" value="'+L_defImages+'" onclick="this.style.display=\'none\'">';
		document.getElementById('ChangePlImg').appendChild(defaultImagesBox);
		
		document.getElementById("DisplayDefaultImages").addEventListener("click", ShowImages, false);
	}
}

function ShowImages(){
	var defaultImagesBox = document.createElement('span');
	defaultImagesBox.setAttribute('id', 'Box');
	defaultImagesBox.innerHTML = '<input type="button" class="button1" value="'+L_defImages+'" onclick="if(document.getElementById(\'DefaultImages\').style.display==\'none\'){document.getElementById(\'DefaultImages\').style.display=\'block\';}else{document.getElementById(\'DefaultImages\').style.display=\'none\';}">'+
	'<br><span id="DefaultImages""><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/gigantas.jpg" style="margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/forestelf.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/satiros.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/rusalka.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/pigasos.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<br><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/minotauros.jpg" style="margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/medousa.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/magicboy.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/leonidas.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/kuklopas.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<br><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/kleopatra.jpg" style="margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/kesaras.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/kentauros.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/gorgona.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/aladin.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<br><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/farao.jpg" style="margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/dragoni.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/copgirl.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/basilias.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/amazona.jpg" style="margin-left:3px;margin-top:8px;width:90px;cursor:pointer;" onclick="document.getElementById(\'ImageUrl\').value=this.getAttribute(\'src\');">'+
	'<br><i>'+L_imgMadeFrom+' <b>Miguel Coimbra</b> (<a href="http://www.miguelcoimbra.com/" target="_blank">Homepage</a>)</i></span>';
	document.getElementById('ChangePlImg').appendChild(defaultImagesBox);
}

//################################################################################################################################
//## GUILD'S IMAGE / ΕΙΚΟΝΑ ΤΑΓΜΑΤΟΣ
//################################################################################################################################
function guildImage(){
	if(document.getElementById('content').innerHTML.match(/##GTGI=([^#]+)##/i)){
		var img_Guild=document.getElementById('content').innerHTML.match(/##GTGI=([^#]+)##/i)[1];
		if(document.getElementById('blackoutDialogLeave')){
			document.getElementById('content').getElementsByTagName('img')[1].setAttribute('id','GuildImage');
		}
		else{
			document.getElementById('content').getElementsByTagName('img')[0].setAttribute('id','GuildImage');
		}
		document.getElementById('GuildImage').setAttribute('height','232px');
		document.getElementById('GuildImage').setAttribute('width','209px');
		document.getElementById('GuildImage').setAttribute('src',img_Guild);
	}
}

function reportGuildImage(){//stands for the real report
	if(document.getElementById('content').innerHTML.match(/i=\d+/g)){
		var g1=document.getElementById('content').innerHTML.match(/i=\d+/g)[0];
		var link1=GCAO_siteurl+'mod=guild_main&'+g1+'&sh='+GCAO_secureCode;
		GM_xmlhttpRequest({
			method: "GET",
			url: link1,
			onload: function(response){
				if(response.responseText.match(/##GTGI=/i)){
					var img_Guild1=response.responseText.match(/##GTGI=([^#]+)##/i)[1];
					document.getElementById('content').getElementsByTagName('img')[0].setAttribute('id','GuildImage1');
					document.getElementById('GuildImage1').setAttribute('height','232px');
					document.getElementById('GuildImage1').setAttribute('width','209px');
					document.getElementById('GuildImage1').setAttribute('src',img_Guild1);
				}
			}
		});
	}
	if(document.getElementById('content').innerHTML.match(/i=\d+/g)[1]){
		var g11=document.getElementById('content').innerHTML.match(/i=\d+/g)[1];
		var link11=GCAO_siteurl+'mod=guild_main&'+g11+'&sh='+GCAO_secureCode;
		GM_xmlhttpRequest({
			method: "GET",
			url: link11,
			onload: function(response){
				if(response.responseText.match(/##GTGI=/i)){
					var img_Guild11=response.responseText.match(/##GTGI=([^#]+)##/i)[1];
					document.getElementById('content').getElementsByTagName('img')[1].setAttribute('id','GuildImage11');
					document.getElementById('GuildImage11').setAttribute('height','232px');
					document.getElementById('GuildImage11').setAttribute('width','209px');
					document.getElementById('GuildImage11').setAttribute('src',img_Guild11);
				}
			}
		});
	}
}

function preReportGuildImage(){//stands for the pre attack status
	var link1=GCAO_siteurl+'mod=guild_main&i=0&sh='+GCAO_secureCode;
	GM_xmlhttpRequest({
		method: "GET",
		url: link1,
		onload: function(response){
			if(response.responseText.match(/##GTGI=/i)){
				var img_Guild1=response.responseText.match(/##GTGI=([^#]+)##/i)[1];
				document.getElementById('content').getElementsByTagName('img')[0].setAttribute('id','GuildImage1');
				document.getElementById('GuildImage1').setAttribute('height','232px');
				document.getElementById('GuildImage1').setAttribute('width','209px');
				document.getElementById('GuildImage1').setAttribute('src',img_Guild1);
			}
		}
	});
	
	if(document.location.href.match(/gid=\d+/g)){
		var g11=document.location.href.match(/gid=(\d+)/g)[0].replace('gid=','');
		var link11=GCAO_siteurl+'mod=guild_main&i='+g11+'&sh='+GCAO_secureCode;
		GM_xmlhttpRequest({
			method: "GET",
			url: link11,
			onload: function(response){
				if(response.responseText.match(/##GTGI=/i)){
					var img_Guild11=response.responseText.match(/##GTGI=([^#]+)##/i)[1];
					document.getElementById('content').getElementsByTagName('img')[1].setAttribute('id','GuildImage11');
					document.getElementById('GuildImage11').setAttribute('height','232px');
					document.getElementById('GuildImage11').setAttribute('width','209px');
					document.getElementById('GuildImage11').setAttribute('src',img_Guild11);
				}
			}
		});
	}
}
//################################################################################################################################
//## SAVE GUILD'S IMAGE / ΑΠΟΘΗΚΕΥΣΗ ΕΙΚΟΝΑΣ ΤΑΓΜΑΤΟΣ
//################################################################################################################################
function GuildImageSave(){
	document.getElementById('content').getElementsByTagName('input')[0].id='save';
	var perigrafi = document.getElementById('description').innerHTML;
	if (perigrafi.match(/\[f c=#DED2AD\]\[f s=10\]##GTGI=([^#]+)##\[\/f\]\[\/f\]/i)){
		var link = perigrafi.match(/\[f c=#DED2AD\]\[f s=10\]##GTGI=([^#]+)##\[\/f\]\[\/f\]/i);
		document.getElementById('description').innerHTML = perigrafi.replace(link[0], '');
		link = link[1];
	}
	else if(perigrafi.match(/\[f c=#E5D9BD\]\[f s=10\]##GTGI=([^#]+)##\[\/f\]\[\/f\]/i)){
		var link = perigrafi.match(/\[f c=#E5D9BD\]\[f s=10\]##GTGI=([^#]+)##\[\/f\]\[\/f\]/i);
		document.getElementById('description').innerHTML = perigrafi.replace(link[0], '');
		link = link[1];
	}
	else{var link = '';}
	var newGImg = document.createElement('span');
	newGImg.setAttribute('id', 'ChangeGImg')
	newGImg.innerHTML = '<br><br><b>'+L_changeGuildImage+':</b><p><input id="ImageUrl" size="73" value="' + link + '"></p>';
	insertAfter(newGImg,document.getElementById('description'));
	document.getElementsByTagName('form')[0].setAttribute('onsubmit',"if(document.getElementById('ImageUrl').value!=''){document.getElementById('description').value = document.getElementById('description').value + '[f c=#DED2AD][f s=10]##GTGI=' + document.getElementById('ImageUrl').value + '##[/f][/f]';document.getElementById('description').innerHTML = document.getElementById('description').value + '[f c=#DED2AD][f s=10]##GTGI=' + document.getElementById('ImageUrl').value + '##[/f][/f]';}");	

	document.getElementById('descCounter').style.display='none';
	
	var charNum=document.getElementById('description').innerHTML.length+document.getElementById('ImageUrl').value.length+38;
	var charCounter = document.createElement('span');
	charCounter.setAttribute('id', 'charCounter');
	charCounter.innerHTML=charNum;
	var location = document.getElementById('descCounter');
	location.parentNode.insertBefore(charCounter, location);
	
	var warningSpan=document.createElement('tr');
	warningSpan.innerHTML='<td><span id="ImageProblem" style="display:none;color:red;margin-left:5px;">'+L_Overfloated+':<br> - '+L_gImageWillBeLost+'.<br> - '+L_gDescrtipionWillBeCut+'.</span></td>';
	var location=document.getElementById('descCounter').parentNode.parentNode;
	insertAfter(warningSpan, location);
	
	document.getElementById('description').setAttribute('onkeyup','if(document.getElementById(\'ImageUrl\').value.length>0){var addin=38;}else{var addin=0;}var x=document.getElementById(\'description\').value.length+document.getElementById(\'ImageUrl\').value.length+addin;document.getElementById(\'charCounter\').innerHTML=x;if(x>10000){document.getElementById(\'ImageProblem\').style.display=\'block\'}else{document.getElementById(\'ImageProblem\').style.display=\'none\'}');
	document.getElementById('ImageUrl').setAttribute('onkeyup','if(document.getElementById(\'ImageUrl\').value.length>0){var addin=38;}else{var addin=0;}var x=document.getElementById(\'description\').value.length+document.getElementById(\'ImageUrl\').value.length+addin;document.getElementById(\'charCounter\').innerHTML=x;if(x>10000){document.getElementById(\'ImageProblem\').style.display=\'block\'}else{document.getElementById(\'ImageProblem\').style.display=\'none\'}');
}
//################################################################################################################################
//## TAKE GUILD'S NAME IF IT EXIST
//################################################################################################################################
function guildNameTake(){
	if(document.getElementById('content').getElementsByTagName('b')[0]){
		var guildName=document.getElementById('content').getElementsByTagName('b')[0].innerHTML;
		Set_Cookie('guildName',guildName);
	}
}

//################################################################################################################################
//## Guild Application system
//################################################################################################################################
function makeAGuildApplication(){
	var status=GM_getValue('GuildApplication_'+GCAO_lang+'_'+GCAO_server, 'false');
	var time=day.getTime();
	if(status.match(/\d+/i)){
		if((time-status*1)>(1000*60*60*24)){
			GM_setValue('GuildApplication_'+GCAO_lang+'_'+GCAO_server, 'false');
		}
	}
	
	var div = document.createElement('div');
	div.setAttribute('class','contentItem');
	div.setAttribute('style','margin-top: 20px;');
	
	if(document.location.href.match('&save_application')){
		var insideString='<p>Your server guild application was applied.<br>Now every guild administrator in your server can browse your application.</p>';
	}else if(document.location.href.match('&withdraw_application')){
		var insideString='<p>Your server guild application was withdrawn.</p>';
	}else{
		if(getMyLevel()<15){
			var insideString='<p>You must be at least a 15 level player to make a server guild application.</p>';
			document.getElementById('content').appendChild(div);
		}else if(status=='false'){
			var insideString='<p>By making a server guild application, every server guild administrator will be able to see your request to find a guild.<br><br>Write about you in the following box:<br><textarea id="Server_Application_Text" style="height:80px;width:500px;"></textarea><br><i style="float:'+GCAO_right+';">(Your application will expire in 7 days)</i><br><input id="Server_Application_Button" type="button" class="button1" value="Apply"></p>';
			document.getElementById('content').appendChild(div);
		}else if(status=='true'){
			var insideString='<p>You have already make a server guild application.<br>Do you want to withdraw it?<br><i style="float:'+GCAO_right+';">(You will be able to make a new one after 24hours)</i><br><input id="Server_Application_Button" type="button" class="button1" value="Withdraw Application"></p>';
		}else{
			var time_dif=parseInt((1000*60*60*24)-(time-status*1)/1000);
			var total_time=secondsToTime(time_dif);
			var insideString='<p>You will be able to make a new server guild application in:<br>'+total_time.h+'h '+total_time.m+'m '+total_time.s+'s</p>';
		}
	}
	div.innerHTML='<h3>Server guild applications</h3><div class="contentItem_content">'+insideString+'</div>';
	document.getElementById('content').appendChild(div);
	if(document.getElementById("Server_Application_Button")){
		document.getElementById("Server_Application_Button").addEventListener('click',  function(){
			if(document.getElementById("Server_Application_Text")){
				GM_setValue('GuildApplication_'+GCAO_lang+'_'+GCAO_server, 'true');
				document.location.href+='&save_application';
			}else{
				var time=day.getTime();
				time=time+'';
				GM_setValue('GuildApplication_'+GCAO_lang+'_'+GCAO_server, time);
				document.location.href+='&withdraw_application';
			}
		}, false);
	}
}

//################################################################################################################################
//## BASICS WHILE TRAINING / ΒΑΣΙΚΕΣ ΣΤΗΝ ΕΚΠΑΙΔΕΥΣΗ
//################################################################################################################################
function basikes(){
    var tot = 0;
    if(document.getElementById('char_f0_tt')){
		var stats = new Array(2);
		for (x=0;x<=5;x++){
			stats[x,0] = document.getElementById('char_f'+x+'_tt').getAttribute('onmouseover');
			stats[x,1] = stats[x,0].match(/\\'>(\d+)/g)[2].match(/(\d+)/g)[0];
			if(stats[x,0].match(/\\'>\+(\d+)/g)){
				stats[x,3] = stats[x,0].match(/\+(\d+)/g)[0];
				stats[x,4] = stats[x,0].match(/\+(\d+)/g)[1];
				stats[x,3] = stats[x,4]*1-stats[x,3]*1;
			}else if(stats[x,0].match(/\\'>-(\d+)/g)){
				stats[x,3] = stats[x,0].match(/-(\d+)/g)[0];
			}else{
				stats[x,3] = 0;
			}
			stats[x,0] = stats[x,0].match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
			stats[x,2] = nextPoints(stats[x,0]);
			
			//Old type of displaying base points etc (before Gladiatus v1.5.0)
			//document.getElementById('char_f'+x).setAttribute('style','color: #540400;display: block;float: '+GCAO_right+';font-weight: bold;position: relative;'+GCAO_right+': 5px;text-align: '+GCAO_right+';top: -15px;width: 130px;');
			//document.getElementById('char_f'+x).innerHTML += ' | <font color="#505050">' + stats[x,0] + '</font> | <font color="red">' + stats[x,3] + '</font> | <font color="green">+' + stats[x,2] + '</font>';
			document.getElementById('char_f'+x).setAttribute('style','width: 265px;'+GCAO_right+':125px;');
			document.getElementById('char_f'+x).getElementsByTagName('div')[6].setAttribute('style','width:65px;color:#540400;');
			document.getElementById('char_f'+x).getElementsByTagName('div')[6].innerHTML+='<font style="font-size:0.7em;color:#505050;"> / '+stats[x,1]+'</font>';
			document.getElementById('char_f'+x).innerHTML +='<div class="training_operator">'+training_symbol+'</div> <div class="training_value" style="color:green;">+' + stats[x,2] + '</div>';
			
			if(x==0){tot += statCost(5, stats[x,0], 2.6, 0);}
			else if((x==1)||(x==4)){tot += statCost(5, stats[x,0], 2.5, 0);}
			else if((x==2)||(x==3)){tot += statCost(5, stats[x,0], 2.3, 0);}
			else if(x==5){tot += statCost(5, stats[x,0], 2.4, 0);}
		}
		
		var div = document.createElement('font');
		div.setAttribute('style','font-weight:normal;position:absolute;margin-top:-235px;margin-'+GCAO_left+':30px;')
		div.innerHTML=dottedNumber(tot)+' <img border="0" align="absmiddle" src="'+img_gold+'"> '+L_spent;
		document.getElementById('content').appendChild(div);
	}
}
     
// return the cost of a stat from begin to end.
/**
coeff : 2.6 <-> Strength
2.5 <-> skill/charisma
2.4 <-> intelligence
2.3 <-> agility/constitution
**/
function statCost(begin, end, coeff, reduc){
    var count = 0;
    begin = parseInt(begin);
    end = parseInt(end);
     
    for(var i = begin; i < end; i++)
    count += parseInt(Math.pow(i-4,coeff)*(1-reduc));
     
    return count;
}
     
//How much the max will increase / Πόσο θα αυξηθεί το μέγιστο
function nextPoints(stat){
    stat = stat*1;
    if(stat%2==1){var nextPoints=2;}
    else{var nextPoints=1;}
    return nextPoints;
}
     
function resetStats(){
    var reset = 5;
    document.getElementById("inputStat1").value = reset;
    document.getElementById('inputStat2').value = document.getElementById('char_f0_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
    document.getElementById("inputStat3").value = reset;
    document.getElementById('inputStat4').value = document.getElementById('char_f1_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
    document.getElementById("inputStat5").value = reset;
    document.getElementById('inputStat6').value = document.getElementById('char_f2_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
    document.getElementById("inputStat7").value = reset;
    document.getElementById('inputStat8').value = document.getElementById('char_f3_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
    document.getElementById("inputStat9").value = reset;
    document.getElementById('inputStat10').value = document.getElementById('char_f4_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
    document.getElementById("inputStat11").value = reset;
    document.getElementById('inputStat12').value = document.getElementById('char_f5_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
    document.getElementById("inputStat13").innerHTML = "";
    document.getElementById("inputStat14").innerHTML = "";
    document.getElementById("inputStat15").innerHTML = "";
    document.getElementById("inputStat16").innerHTML = "";
    document.getElementById("inputStat17").innerHTML = "";
    document.getElementById("inputStat18").innerHTML = "";
    document.getElementById("inputStat19").innerHTML = "";
    document.getElementById("inputStat20").innerHTML = "";
}
     
function addTrainingCostSimulator(){
	if(document.getElementById('char_f0_tt')){
		var div = document.createElement('div');
		
		var L_Strength = document.getElementById('char_f0_tt').getElementsByTagName('span')[0].innerHTML;
		var L_Skill = document.getElementById('char_f1_tt').getElementsByTagName('span')[0].innerHTML;
		var L_Agility = document.getElementById('char_f2_tt').getElementsByTagName('span')[0].innerHTML;
		var L_Constitution = document.getElementById('char_f3_tt').getElementsByTagName('span')[0].innerHTML;
		var L_Charisma = document.getElementById('char_f4_tt').getElementsByTagName('span')[0].innerHTML;
		var L_Intelligence = document.getElementById('char_f5_tt').getElementsByTagName('span')[0].innerHTML;

		if(navigator.userAgent.toLowerCase().match(/chrome/i)){var num=6;}else{var num=7;}
		
		document.getElementById('content').appendChild(div);
		div.innerHTML +='<div class="contentItem" style="margin-top: 0px;">'
		+'<h3>'+L_SimOfTraining+'</h3>'
		+'<div class="contentItem_content">'
		+'<style>'
		+'input.button4 {background-image: url("'+img_button4+'");border:0 none;color:#453011;font-size:11px;font-weight:bold;height:26px;width:37px;}'
		+'</style>'
		+'<table align="center" style="border:1px solid #af8e50;background-color:#ded8c6;padding:5px;">'
		+'<tr>'
		+'<th align="center" width="50"> '+L_Stat+' </th>'
		+'<th align="center" width="40"> '+L_From+' </th>'
		+'<th align="center" width="50"> '+L_To+' </th>'
		+'<th align="center">  </th>'
		+'<th align="center" width="150" > '+L_Cost+' <img align="absmiddle" src="'+img_gold+'"></th>'
		+''
		+'</tr>'
		+'<tr>'
		+'<th align="center">'+L_Strength+'</th>'
		+'<th><input type="text" id="inputStat1" size="'+num+'"></th>'
		+'<th><input type="text" id="inputStat2" size="'+num+'"></th>'
		+'<th align="center" style="width:78px;"><input type="button" id="addOne1" class="button4" onclick="document.getElementById(\'inputStat2\').value++;" value="+1">'
		+'<input type="button" id="removeOne1" class="button4" onclick="document.getElementById(\'inputStat2\').value=document.getElementById(\'inputStat2\').value-1;" value="-1" style="margin-left:4px;"></th>'
		+'<th align="center"><span id="inputStat14"></span></th>'
		+'</tr>'
		+'<tr>'
		+'<th align="center">'+L_Skill+' </th>'
		+'<th><input type="text" id="inputStat3" size="'+num+'"></th>'
		+'<th><input type="text" id="inputStat4" size="'+num+'"></th>'
		+'<th align="center"><input type="button" id="addOne2" class="button4" onclick="document.getElementById(\'inputStat4\').value++;" value="+1">'
		+'<input type="button" id="removeOne2" class="button4" onclick="document.getElementById(\'inputStat4\').value=document.getElementById(\'inputStat4\').value-1;" value="-1" style="margin-left:4px;"></th>'
		+'<th align="center"><span id="inputStat15"></span></th>'
		+'</tr>'
		+'<tr>'
		+'<th align="center">'+L_Agility+' </th>'
		+''
		+'<th><input type="text" id="inputStat5" size="'+num+'"></th>'
		+'<th><input type="text" id="inputStat6" size="'+num+'"></th>'    
		+'<th align="center"><input type="button" id="addOne3" class="button4" onclick="document.getElementById(\'inputStat6\').value++;" value="+1">'
		+'<input type="button" id="removeOne3" class="button4" onclick="document.getElementById(\'inputStat6\').value=document.getElementById(\'inputStat6\').value-1;" value="-1" style="margin-left:4px;"></th>'

		+'<th align="center"><span id="inputStat16"></span></th>'
		+'</tr>'
		+'<tr>'
		+'<th align="center">'+L_Constitution+' </th>'
		+'<th><input type="text" id="inputStat7" size="'+num+'"></th>'
		+'<th><input type="text" id="inputStat8" size="'+num+'"></th>'
		+'<th align="center"><input type="button" id="addOne4" class="button4" onclick="document.getElementById(\'inputStat8\').value++;" value="+1">'
		+'<input type="button" id="removeOne4" class="button4" onclick="document.getElementById(\'inputStat8\').value=document.getElementById(\'inputStat8\').value-1;" value="-1" style="margin-left:4px;"></th>'
		+'<th align="center"><span id="inputStat17"></span></th>'
		+'</tr>'
		+'<tr>'
		+'<th align="center">'+L_Charisma+' </th>'
		+'<th><input type="text" id="inputStat9" size="'+num+'"></th>'
		+'<th><input type="text" id="inputStat10" size="'+num+'"></th>'
		+'<th align="center"><input type="button" id="addOne5" class="button4" onclick="document.getElementById(\'inputStat10\').value++;" value="+1">'
		+'<input type="button" id="removeOne5" class="button4" onclick="document.getElementById(\'inputStat10\').value=document.getElementById(\'inputStat10\').value-1;" value="-1" style="margin-left:4px;"></th>'
		+'<th align="center"><span id="inputStat18"></span></th>'
		+''
		+'</tr>'
		+'<tr>'
		+'<th align="center">'+L_Intelligence+' </th>'
		+'<th><input type="text" id="inputStat11" size="'+num+'"></th>'
		+'<th><input type="text" id="inputStat12" size="'+num+'"></th>'
		+'<th align="center"><input type="button" id="addOne6" class="button4" onclick="document.getElementById(\'inputStat12\').value++;" value="+1">'
		+'<input type="button" id="removeOne6" class="button4" onclick="document.getElementById(\'inputStat12\').value=document.getElementById(\'inputStat12\').value-1;" value="-1" style="margin-left:4px;"></th>'
		+'<th align="center"><span id="inputStat19"></span></th>'
		+'</tr>'
		+'<tr>'
		+'<th align="center" colspan="2">'+L_TrainingCampLevel+'</th>'
		+'<th align="center">'
		+'<select id="inputStat0" onChange="calculStats()" name="selection" >'
		+'<option value="0">0</option>'
		+'<option value="1">1</option>'
		+''
		+'<option value="2">2</option>'
		+'<option value="3">3</option>'
		+'<option value="4">4</option>'
		+'<option value="5">5</option>'
		+'<option value="6">6</option>'
		+'<option value="7">7</option>'
		+'<option value="8">8</option>'
		+'<option value="9">9</option>'
		+'<option value="10">10</option>'
		+''
		+'<option value="11">11</option>'
		+'<option value="12">12</option>'
		+'<option value="13">13</option>'
		+'<option value="14">14</option>'
		+'<option value="15">15</option>'
		+'</select>'
		+'</th>'
		+'<th align="right">'+L_Reduction+' </th>'
		+'<th align="center"><span id="inputStat20"></span></th>'
		+'</tr>'
		+''
		+'<tr>'
		+'<th colspan="2" align="center"></th>'
		+'<th align="right" colspan="2"><b>'+L_TotalCost+'</b></th>'
		+'<th align="center"><span id="inputStat13"></span></th>'
		+'</tr>'
		+'<tr>'
		+'<th colspan="5" align="center">'
		+'<input class="button2" type="button" value="'+L_staticsTitle+'" id="myStats" title="'+L_TotalCostTitle+'">'
		+'<input class="button2" type="button" value="'+L_Calculate+'" id="calculate" title="'+L_CalculateTitle+'" style="margin-left:20px;">'
		+'<input class="button3" type="button" onClick="resetStats()" value="'+L_ClearAll+'" id="reset" title="'+L_ClearAllTitle+'" style="margin-left:20px;">'
		+'</th>'
		+'</tr>'
		+'</table></div>';

		document.getElementById('myStats').addEventListener('click',function(){putMyStats2();}, false);
		document.getElementById('calculate').addEventListener('click',function(){calculStats();}, false);
		document.getElementById('reset').addEventListener('click',function(){resetStats();}, false);

		resetStats();
		for (x=1;x<=6;x++){
			document.getElementById('addOne'+x).addEventListener('click',function(){calculStats();}, false);
			document.getElementById('removeOne'+x).addEventListener('click',function(){calculStats();}, false);
			var y=x*2;
			var z=x-1;
			document.getElementById('inputStat'+y).value = document.getElementById('char_f'+z+'_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
		}
	}
}

function putMyStats2(){
	for (x=1;x<=6;x++){
		var y=2*x-1;
		var z=x-1;
		document.getElementById('inputStat'+y).value = document.getElementById('char_f'+z+'_tt').getAttribute('onmouseover').match(/\\'>(\d+)/g)[1].match(/(\d+)/g)[0];
	}
}
 
function calculStats(){
    var reduc = 2*document.getElementById("inputStat0").value/100;
    var cout_force = statCost(document.getElementById("inputStat1").value, document.getElementById("inputStat2").value, 2.6, reduc);
    var cout_adresse = statCost(document.getElementById("inputStat3").value, document.getElementById("inputStat4").value, 2.5, reduc);
    var cout_agilite = statCost(document.getElementById("inputStat5").value, document.getElementById("inputStat6").value, 2.3, reduc);
    var cout_constitution = statCost(document.getElementById("inputStat7").value, document.getElementById("inputStat8").value, 2.3, reduc);
    var cout_charisme = statCost(document.getElementById("inputStat9").value, document.getElementById("inputStat10").value, 2.5, reduc);
    var cout_intelligence = statCost(document.getElementById("inputStat11").value, document.getElementById("inputStat12").value, 2.4, reduc);
    var cout_total = cout_force + cout_adresse + cout_agilite + cout_constitution + cout_charisme + cout_intelligence;
    document.getElementById("inputStat13").innerHTML = dottedNumber(cout_total);
    document.getElementById("inputStat14").innerHTML = displayProp(cout_force,cout_total);
    document.getElementById("inputStat15").innerHTML = displayProp(cout_adresse ,cout_total);
    document.getElementById("inputStat16").innerHTML = displayProp(cout_agilite ,cout_total);
    document.getElementById("inputStat17").innerHTML = displayProp(cout_constitution ,cout_total);
    document.getElementById("inputStat18").innerHTML = displayProp(cout_charisme ,cout_total);
    document.getElementById("inputStat19").innerHTML = displayProp(cout_intelligence ,cout_total);
    document.getElementById("inputStat20").innerHTML = dottedNumber(parseInt(cout_total*reduc/(1-reduc)));
}
     
function displayProp(nbr1,nbr2){
	if(nbr2!=0){return dottedNumber(nbr1)+" ("+parseInt(nbr1*100/nbr2)+"%)";}
	else{return dottedNumber(nbr1)+" (0%)";}
}

//################################################################################################################################
//## SIMULATOR / ΠΡΟΣΟΜΙΩΤΗΣ
//################################################################################################################################
function simulator(){
	if(document.getElementById('content').getElementsByTagName('td')[3]){
		if(Get_Cookie('simstats')){
			var code=Get_Cookie('simstats');
		}else{
			var code='##0##0##0##0##0##0##0##0##0##0##0##0##0##0';
		}
		
		var Level = code.match(/##([^#]+)/g)[0].replace(/#/g,'')*1;
		var LifePointsLeft = code.match(/##([^#]+)/g)[1].replace(/#/g,'')*1;
		var Strength = code.match(/##([^#]+)/g)[2].replace(/#/g,'')*1;
		var Skill = code.match(/##([^#]+)/g)[3].replace(/#/g,'')*1;
		var Agility = code.match(/##([^#]+)/g)[4].replace(/#/g,'')*1;
		var Constitution = code.match(/##([^#]+)/g)[5].replace(/#/g,'')*1;
		var Charisma = code.match(/##([^#]+)/g)[6].replace(/#/g,'')*1;
		var Armour = code.match(/##([^#]+)/g)[7].replace(/#/g,'')*1;
		var DamageMin = code.match(/##([^#]+)/g)[8].replace(/#/g,'')*1;
		var DamageMax = code.match(/##([^#]+)/g)[9].replace(/#/g,'')*1;
		var ChanceOfAvoidCriticalHits = code.match(/##([^#]+)/g)[10].replace(/#/g,'')*1;
		var ChanceToBlockAHit = code.match(/##([^#]+)/g)[11].replace(/#/g,'')*1;
		var ChanceForCriticalDamage = code.match(/##([^#]+)/g)[12].replace(/#/g,'')*1;
		
		var img_winpercent = '';
		var SimulatorBox = document.createElement('div');
		SimulatorBox.setAttribute('id', 'SimulatorBox');
		SimulatorBox.setAttribute('style', 'cursor:progress;margin-top:10px;width:290px;padding:5px;border: 2px solid rgb(178, 139, 96);text-align:justify;');
		document.getElementById('content').getElementsByTagName('td')[3].appendChild(SimulatorBox);
		
		document.getElementById('SimulatorBox').innerHTML = '<b>'+L_Simulator+':</b>'+
		'<span id="percent" style="position:absolute;color:white;margin-left:150px;margin-top:18px;"></span>'+
		'<span id="ProsTitle" style="position:absolute;color:white;margin-left:-40px;margin-top:19px;"><b>'+L_arena+':</b></span>'+
		'<table cellpadding="0px" cellspacing="0px"><tr>'+
		'<td style="background-image: url(' + img_winpercent + '); background-position: 0px 0px;width:1px;height:20px;"></td>'+
		'<td id="SetWidth" style="background-image: url(' + img_winpercent + '); background-position: 0px 0px;width:200px;height:20px;cursor:pointer;"></td>'+
		'<td style="background-image: url(' + img_winpercent + '); background-position: -402px 0px;width:1px;height:20px;"></td>'+
		'</tr></table>' +
		'<table width="242px"><tr><td>' +
		'<span id="more" style="position:absolute;z-index: 20;margin-left:-3px;margin-top:-18px;display:none;cursor:pointer;"><br>' +
		'<table width="242px" id="morein" style="color:#ffffff;background: black; opacity: 0.85; border: 1px solid rgb(153, 153, 153); padding:3px;cursor:default;"></table></span>'+
		'</td></tr></table>';
		
		var fights=GM_getValue('sf', 1000);
		var results = simulate(Skill, Agility, Charisma, ChanceToBlockAHit, ChanceOfAvoidCriticalHits, Armour, DamageMin, DamageMax, ChanceForCriticalDamage, LifePointsLeft, fights, 15);
		var won = results[0];
		var wonP = Math.round(won/fights*10000)/100;
		var lost = results[1];
		var lostP = Math.round(lost/fights*10000)/100;
		var draw = results[2];
		var drawP = Math.round(draw/fights*10000)/100;
		var myAvDamage = results[3];
		var hisAvDamage = results[4];
		var myRemainingLife = results[5];
		var hisRemainingLife = results[6];
		
		if(wonP>80){var color="green"}
		else if(wonP>=70){var color="black"}
		else{var color="red"}	
		var imgposition = -(101-wonP)*2;
		if(won==lost){var FightResulte='Draw';}
		else{var FightResulte=wonP+'%';}

		document.getElementById('SetWidth').setAttribute('style','background-image: url(http://i617.photobucket.com/albums/tt260/goldisever/Apo/winbar.png); background-position:'+imgposition+'px 0px;width:200px;height:20px;cursor:pointer;');
		document.getElementById('percent').innerHTML = '<b><font color="'+color+'">'+FightResulte+'</font></b>';
		document.getElementById('morein').innerHTML += '<tr><td>' +
		'<b style="color: rgb(186, 151, 0);">'+L_Battles+': </b><font color="#c0c0c0">'+dottedNumber(fights)+'</font>'+
		'<table width="100%">'+
		'<tr><td>&nbsp;&nbsp;</td><td><font color="white">'+L_Won+'</font></td><td><font color="white">:</font></td><td><font color="green">'+dottedNumber(won)+'</font></td><td><font color="grey">('+wonP+'%)</font></td></tr>'+
		'<tr><td>&nbsp;&nbsp;</td><td><font color="white">'+L_Lost+'</font></td><td><font color="white">:</font></td><td><font color="red">'+dottedNumber(lost)+'</font></td><td><font color="grey">('+lostP+'%)</font></td></tr>'+
		'<tr><td>&nbsp;&nbsp;</td><td><font color="white">'+L_Draws+'</font></td><td><font color="white">:</font></td><td><font color="#B8B8B8">'+dottedNumber(draw)+'</font></td><td><font color="grey">('+drawP+'%)</font></td></tr>'+
		'</table>'+
		'<b style="color: rgb(186, 151, 0);">'+L_Damage+':'+
		'<table width="100%">'+
		'<tr><td>&nbsp;&nbsp;</td><td><font color="white">'+L_myAvDamage+'</font></td><td><font color="white">:</font></td><td><font color="grey">'+dottedNumber(myAvDamage)+'</font></td></tr>'+
		'<tr><td>&nbsp;&nbsp;</td><td><font color="white">'+L_hisAvDamage+'</font></td><td><font color="white">:</font></td><td><font color="grey">'+dottedNumber(hisAvDamage)+'</font></td></tr>'+
		'</table>'+
		'</table>'+
		'<b style="color: rgb(186, 151, 0);">'+L_Life+':'+
		'<table width="100%">'+
		'<tr><td>&nbsp;&nbsp;</td><td><font color="white">'+L_myRemLife+'</font></td><td><font color="white">:</font></td><td><font color="grey">'+dottedNumber(myRemainingLife)+'</font></td></tr>'+
		'<tr><td>&nbsp;&nbsp;</td><td><font color="white">'+L_hisRemLife+'</font></td><td><font color="white">:</font></td><td><font color="grey">'+dottedNumber(hisRemainingLife)+'</font></td></tr>'+
		'</table></td></tr>';
		document.getElementById('SetWidth').setAttribute('onmouseover',"document.getElementById('more').style.display='block';");
		document.getElementById('SetWidth').setAttribute('onmouseout',"document.getElementById('more').style.display='none';");
		document.getElementById('more').setAttribute('onmouseover',"document.getElementById('more').style.display='block';");
		document.getElementById('more').setAttribute('onmouseout',"document.getElementById('more').style.display='none';");
		document.getElementById('ProsTitle').setAttribute('onmouseover',"document.getElementById('more').style.display='block';");
		document.getElementById('ProsTitle').setAttribute('onmouseout',"document.getElementById('more').style.display='none';");
		document.getElementById('SimulatorBox').style.cursor='default';
	}
}

/**################################################################################################################################
## Djor's Simulator / Προσομοιωτής του Djor
################################################################################################################################**/
/**
	Arguments : my stats
**/
function simulate(skill, agility, charisma, block, resistance, ARMOR, damageMin, damageMax, critDamage, life, fights, rounds){
/* Results */
	var win = 0 ;
	var lose = 0 ;
	var draw = 0 ;

	/* number of simulated battles */
	//var fights = 1000;
	
	/* We search Opponent stats */
	if(document.getElementById('skillB')){
		var opponentSkill = document.getElementById('skillB').value;
		var opponentAgility = document.getElementById('agilityB').value;
		var opponentCharisma = document.getElementById('charismaB').value;
		var opponentArmor = document.getElementById('armorB').value;
		var opponentDamageMin = document.getElementById('damageMinB').value;
		var opponentDamageMax = document.getElementById('damageMaxB').value;
		var opponentResistance = document.getElementById('resistanceB').value;
		var opponentCrit = document.getElementById('criticB').value;
		var opponentBlock = document.getElementById('blockB').value;
		var opponentLife = 100000;
	}
	else{
		var opponentSkill = document.getElementById('char_f1').innerHTML;
		var opponentAgility = document.getElementById('char_f2').innerHTML;
		var opponentCharisma = document.getElementById('char_f4').innerHTML;
		var opponentArmor = document.getElementById('char_panzer').innerHTML;
		var damages = document.getElementById('char_schaden').innerHTML.split(' - ');
		
		var opponentDamageMin = damages[0];
		var opponentDamageMax = damages[1];
		
		var searchCrit = document.getElementById('char_schaden_tt').getAttribute('onmouseover');
		searchCrit = searchCrit.split(' %')[0].split('>');
		var opponentCrit = searchCrit[searchCrit.length-1];
		
		var searchBlock = document.getElementById("char_panzer").parentNode.getAttribute('onmouseover');
			
		searchBlock = searchBlock.split(" %");
		var opponentResistance = searchBlock[0].substring(searchBlock[0].length-2,searchBlock[0].length);
		if(opponentResistance[0]==">") opponentResistance = opponentResistance[1];
		var opponentBlock = searchBlock[1].substring(searchBlock[1].length-2,searchBlock[1].length);
		if(opponentBlock[0]==">") opponentBlock = opponentBlock[1];
		
		var opponentLife = document.getElementById('char_leben_tt').getAttribute('onmouseover');
		/*opponentLife = opponentLife.split("</td><td style=\\'padding-left:20px;text-align:right; color:#BA9700; font-weight: bold; font-size:9pt\\' nowrap=\\'nowrap\\'>")
		opponentLife = opponentLife[1].split("<");
		opponentLife = opponentLife[0].split(" / ");
		opponentLife = opponentLife[0];*/
		opponentLife = opponentLife.match(/(\d+) \/ \d+/i)[1];
	}
	
	/* we transform everything in integer */
	skill = parseInt(skill);
	agility = parseInt(agility);
	charisma = parseInt(charisma);
	block = parseInt(block);
	resistance = parseInt(resistance);
	ARMOR = parseInt(ARMOR);
	damageMin = parseInt(damageMin);
	damageMax = parseInt(damageMax);
	critDamage = parseInt(critDamage);
	opponentSkill = parseInt(opponentSkill);
	opponentAgility = parseInt(opponentAgility);
	opponentCharisma = parseInt(opponentCharisma);
	opponentBlock = parseInt(opponentBlock);
	opponentResistance = parseInt(opponentResistance);
	opponentDamageMin = parseInt(opponentDamageMin);
	opponentDamageMax = parseInt(opponentDamageMax);
	opponentCrit = parseInt(opponentCrit);
	opponentLife = parseInt(opponentLife);

	/* Simulator */
	var chanceOfHittingTheOpponent = 100*skill/(skill+opponentAgility);
	var chanceOfBeingHitten = 100*opponentSkill/(opponentSkill+agility);
	
	/* Double hits*/
	if(charisma>opponentCharisma){
		var myDoubleHit = charisma-opponentCharisma;
		if(myDoubleHit>100) myDoubleHit=100;
		var hisDoubleHit = 0;
	}else{
		var myDoubleHit = 0;
		var hisDoubleHit = opponentCharisma-charisma;
		if(hisDoubleHit>100) hisDoubleHit=100;
	}

	/* critics */
	if(critDamage>opponentResistance)
		var myCritChance = critDamage - opponentResistance;
	else 
		var myCritChance = 0 ;
		
	if(opponentCrit>resistance)
		var hisCritChance = opponentCrit - resistance;
	else 
		var hisCritChance = 0 ;
		
	var myArmorMin = Math.floor(ARMOR/66 - ARMOR/660-1);
	var myArmorMax = Math.floor(ARMOR/66 + ARMOR/660);
	
	var hisArmorMin = Math.floor(opponentArmor/66 - opponentArmor/660-1);
	var hisArmorMax = Math.floor(opponentArmor/66 + opponentArmor/660);
	
	var myAverageDamages = 0;
	var hisAverageDamages = 0;
	
	/* simulate for "fights" battles */
	for(j=0;j<fights;j++){
		//var rounds = Math.floor(Math.random()*21+10);
		//var rounds = 10;
		var myTotalDamages = 0;
		var hisTotalDamages = 0;
		var winByLackOfLife = false;
		var loseByLackOfLife = false;
		
		var i = 0;
		var x = 0;
		while((i<(rounds-x))&&(!winByLackOfLife)&&(!loseByLackOfLife)){
			//alert(rounds+','+(rounds-x));
			var arrayTemp = aRound(myDoubleHit,hisDoubleHit,chanceOfHittingTheOpponent,damageMin,damageMax,myCritChance,opponentBlock,hisArmorMin,hisArmorMax,chanceOfBeingHitten,opponentDamageMin,opponentDamageMax,hisCritChance,block,myArmorMin,myArmorMax,x);
			myTotalDamages = myTotalDamages + arrayTemp[0];
			hisTotalDamages = hisTotalDamages + arrayTemp[1];
			if(myTotalDamages>opponentLife-1) {
				winByLackOfLife = true;
				myTotalDamages = opponentLife-1;
			}
			if(hisTotalDamages>life-1){
				loseByLackOfLife = true;
				hisTotalDamages = life-1;
			}
			i++;
			x = arrayTemp[4];
		}
		
		if(winByLackOfLife==true){win++;}
		else{
			if(loseByLackOfLife==true){lose++;}
			else{
				if(myTotalDamages>hisTotalDamages){win++;}
				else if(myTotalDamages<hisTotalDamages){lose++;}	
				else if(myTotalDamages==hisTotalDamages){draw++;}
			}
		}
		myAverageDamages += myTotalDamages;
		hisAverageDamages += hisTotalDamages;
	}

	myAverageDamages = Math.floor(myAverageDamages/fights);
	hisAverageDamages = Math.floor(hisAverageDamages/fights);
	myRemainingLife = life - hisAverageDamages;
	if(myRemainingLife<=0){myRemainingLife=1}
	hisRemainingLife = opponentLife -myAverageDamages;
	if(hisRemainingLife<=0){hisRemainingLife=1}

	return new Array(win,lose,draw,myAverageDamages,hisAverageDamages, myRemainingLife, hisRemainingLife);
}


/*
	Simulate a round : each player does one attack, two if it is a double hit.
*/	
function aRound(myDoubleHit,hisDoubleHit,chanceOfHittingTheOpponent,damageMin,damageMax,myCritChance,opponentBlock,hisArmorMin,hisArmorMax,chanceOfBeingHitten,opponentDamageMin,opponentDamageMax,hisCritChance,block,myArmorMin,myArmorMax,x){
	var randomnumber100 = Math.floor(Math.random()*100);

	var myNumberOfHit = 1;
	var hisNumberOfHit = 1;
	
	if(randomnumber100<myDoubleHit){
		myNumberOfHit = 2;
		x = x+1;
	}
	if(randomnumber100<hisDoubleHit){
		hisNumberOfHit = 2;
		x = x+1;
	}
	
	var myDamages = 0 ;
	var hisDamages = 0 ;
	
	myDamages = myDamages + aHit(chanceOfHittingTheOpponent,damageMin,damageMax,myCritChance,opponentBlock,hisArmorMin,hisArmorMax);
	if(myNumberOfHit == 2)
		myDamages = myDamages + aHit(chanceOfHittingTheOpponent,damageMin,damageMax,myCritChance,opponentBlock,hisArmorMin,hisArmorMax);
	
	var hisDamages = hisDamages + aHit(chanceOfBeingHitten,opponentDamageMin,opponentDamageMax,hisCritChance,block,myArmorMin,myArmorMax);
	if(hisNumberOfHit == 2)
		hisDamages = hisDamages + aHit(chanceOfBeingHitten,opponentDamageMin,opponentDamageMax,hisCritChance,block,myArmorMin,myArmorMax);
	
	var array = new Array(myDamages,hisDamages,myNumberOfHit,hisNumberOfHit,x);
	
	// alert(chanceOfHittingTheOpponent+' '+damageMin+' '+damageMax+' '+myCritChance+' '+opponentBlock+' '+hisArmorMin+' '+hisArmorMax);
	// alert(chanceOfBeingHitten+' '+opponentDamageMin+' '+opponentDamageMax+' '+hisCritChance+' '+block+' '+myArmorMin+' '+myArmorMax);
	return array;
}

/*
	Return a random hit, it depends on your damages, his armor, his block, his resistance, etc... 
*/
function aHit(chanceOfHittingTheOpponent,damageMin,damageMax,myCritChance,opponentBlock,hisArmorMin,hisArmorMax){
	var myHit = 0;
	
	// if my hit touch my opponent
	var randomnumber1002 = Math.floor(Math.random()*101);
	if(randomnumber1002<chanceOfHittingTheOpponent){
		myHit = damageMin + Math.floor(Math.random()*(damageMax-damageMin+1));

		// critic ? 
		var randomnumber1003 = Math.floor(Math.random()*101);
		if(randomnumber1003<myCritChance)
			myHit = myHit*2;
		
		// block ? 
		var randomnumber1004 = Math.floor(Math.random()*101);
		if(randomnumber1004<opponentBlock)
			myHit = myHit/2;

		// armor
		var randomnumber1005 = hisArmorMin + Math.floor(Math.random()*(hisArmorMax-hisArmorMin+1));
		if(randomnumber1005<myHit)
			myHit = myHit-randomnumber1005;
		else
			myHit = 0;
	}
	
	return myHit;
}

//################################################################################################################################
//## MESSAGES / ΜΗΝΥΜΑΤΑ
//################################################################################################################################
function messages(){
	document.getElementById('content').getElementsByTagName('div')[0].style.padding='0px';
	if(document.getElementsByTagName('input')[0]){document.getElementsByTagName('input')[0].parentNode.style.marginLeft='-6px';}
	
	var inputs = document.getElementById('content').getElementsByTagName('input').length;
	var numberMSG = (inputs-3)/2;
	if(inputs==2){numberMSG=0;}
	
	if(document.getElementById('content').getElementsByTagName('div')[1].getAttribute('class')=='title2_box'){
		document.getElementsByTagName('form')[0].getElementsByTagName('div')[4].innerHTML += '('+numberMSG+')';
	}else{
		document.getElementsByTagName('form')[0].getElementsByTagName('div')[2].innerHTML += '('+numberMSG+')';
	}
	
	if(document.getElementById('content').getElementsByTagName('table')[0]){
		//START guildmates link from Tomas
		var guildMates = new Array();
		if(Get_Cookie("GCAOguildMates")){
			var temp = Get_Cookie("GCAOguildMates").split("#");
			var mate;
			for(var i=0; i < temp.length; i++){
				mate = temp[i].split("<");
				guildMates[mate[0]] = mate[1];
			}
		}
		//END guildmates link from Tomas
		
		var messagesHTML = document.getElementById('content').getElementsByTagName('table')[0].innerHTML;
		if(navigator.userAgent.toLowerCase().match(/firefox/i)){messagesHTML = messagesHTML.replace(/class="tdn" valign="top" width="30/g, "class=\"tdn\" valign=\"top\" style=\"border:1px solid #af8e50;background-color:#ded8c6;padding:5px;\" width=\"16");}
		else{messagesHTML = messagesHTML.replace(/width="30%" class="tdn" valign="top"/g, "class=\"tdn\" valign=\"top\" style=\"border:1px solid #af8e50;background-color:#ded8c6;padding:5px;\" width=\"16%\"");}
		while(messagesHTML.match(/<td class="tdn">([^:]+): ([^>]+)<br>/i)){
			var nameline = messagesHTML.match(/<td class="tdn">([^:]+):([^>]+)<br>/i);
			var firstsentence = nameline[1];
			var AuthorName = nameline[2].replace(' ','');
			var name = AuthorName;
			//START guildmates link from Tomas
			if(guildMates[AuthorName] != null) { // if mate was found make a link
				AuthorName = "<a href=\""+GCAO_siteurl+"mod=player&p="+guildMates[AuthorName]+"&sh="+GCAO_secureCode+"\">"+AuthorName+'</a>';
			}
			messagesHTML = messagesHTML.replace(/<td class="tdn">([^:]+): ([^>]+)<br>/i, "<td class=\"tdn\"><u>"+firstsentence+":</u> <font color='black'><b>"+AuthorName+"</b></font><br>");
			//END guildmates link from Tomas
		}
		while(messagesHTML.match(/(\w+), (\d+.\d+.\d+) - (\d+:\d+:\d+)<.td>/i)){
			var day = messagesHTML.match(/(\w+), (\d+.\d+.\d+) - (\d+:\d+:\d+)<.td>/i)[1];
			var nday = messagesHTML.match(/(\w+), (\d+.\d+.\d+) - (\d+:\d+:\d+)<.td>/i)[2];
			var time = messagesHTML.match(/(\w+), (\d+.\d+.\d+) - (\d+:\d+:\d+)<.td>/i)[3];
			messagesHTML = messagesHTML.replace(/(\w+), (\d+.\d+.\d+) - (\d+:\d+:\d+)<.td>/i, day+"<br>"+time+"<br>["+nday+"]");
		}
		messagesHTML = messagesHTML.replace(/<td class="tdn">/gi, "<td class=\"tdn\" style=\"border:1px solid #af8e50;background-color:#ded8c6;padding:5px;width:449px;\">");
		if(navigator.userAgent.toLowerCase().match(/firefox/i)){var pre='pre';}else{var pre='span';}
		messagesHTML = messagesHTML.replace(/<textarea.cols..\d+..rows..\d+..class..input.>/gi, '<img src="'+img_msg+'" style="position:absolute;margin-'+GCAO_left+':-29px;margin-top:-17px;"><div style="background:#DBCBA5;border-top:1px solid #AF8E50;border-bottom:1px solid #AF8E50;padding:5px;margin:5px -5px 5px -5px;"><'+pre+' width="60" style="margin:0px;line-height:15px;">').replace(/<\/textarea>/gi,'</'+pre+'></div>');
	
		//Message tags
		if(GM_getValue('bb', false) == true){
			while(messagesHTML.match(/\[img\](.+)\[#img\]/i)){
				var imagecode = messagesHTML.match(/\[img\](.+)\[#img\]/i);
				var img = imagecode[1].replace(/ /i, '');
				if(!img.match(/http:\/\//i)){img = 'http://' + img}
				messagesHTML = messagesHTML.replace(/\[img\](.+)\[#img\]/i, '<img src="' + img + '" />');
			}
			while(messagesHTML.match(/\[l\]([^#]+)#l\]/i)){
				var linkcode = messagesHTML.match(/\[l\]([^#]+)#l\]/i);
				var link = linkcode[1].replace(/\[/g, '').replace(/ /g, '');
				var linkb = link;
				if(!link.match(/http:\/\//i)){link = 'http://' + link}
				if(!link.match(/</i)){
					messagesHTML = messagesHTML.replace(/\[l\]([^#]+)#l\]/i, '<a href="' + link + '" target="_blank"/>' + linkb + '</a>');
				}else if(!link.match(/\[l\]/i)){
					messagesHTML = messagesHTML.replace(/\[l\]([^#]+)#l\]/i, '[link:<font color="red">Invalid Link</font>]' + linkcode[1] + '[#link:<font color="red">Invalid Link</font>]');
				}else{
					messagesHTML = messagesHTML.replace(/\[l\]/i, '[link:<font color="red">Invalid Format</font>]');
				}
			}
			while(messagesHTML.match(/\[v\](.+)\[#v\]/i)){
				var videocode = messagesHTML.match(/\[v\](.+)\[#v\]/i);
				if (videocode[1].length>80 , !videocode[1].match(/www\.youtube\.com\/watch/i)){
					messagesHTML = messagesHTML.replace(/\[v\](.+)\[#v\]/i, '[v:<font color="red">Invalid Link</font>]' + videocode[1] + '[#v:<font color="red">Invalid Link</font>]');
				}else{
					var video = videocode[1].replace(/ /g, '');
					var video = video.replace(/watch\?/i, '');
					var video = video.replace(/\=/i, '/');
					messagesHTML = messagesHTML.replace(/\[v\](.+)\[#v\]/i, '<center><object><embed src="' + video + '" type="application/x-shockwave-flash" width="400" height="250"></embed></object></center>');
				}
			}
			while(messagesHTML.match(/\[ReportId:(\d+)\/(\d+)\]/i)){
				var rid = messagesHTML.match(/\[ReportId:(\d+)\/(\d+)\]/i)[1];
				var rtn = messagesHTML.match(/\[ReportId:(\d+)\/(\d+)\]/i)[2];
				messagesHTML = messagesHTML.replace(/\[ReportId:(\d+)\/(\d+)\]/i, '<img src="'+GCAO_siteurl.replace('index.php?','')+'img/ui/icon_expeditionpoints.gif" align="absmiddle" height="20px"/> <a href="'+GCAO_siteurl+'mod=reports&submod=showCombatReport&t='+rtn+'&reportId='+rid+'&sh='+GCAO_secureCode+'">['+L_seeThisReport+': '+rid+'/'+rtn+']</a>');
			}
			
			messagesHTML = messagesHTML.replace(/\[i\]/gi, "<i>").replace(/\[#i\]/gi, "</i>").replace(/\[b\]/gi, "<b>").replace(/\[#b\]/gi, "</b>").replace(/\[c\]/gi, "<center>").replace(/\[#c\]/gi, "</center>").replace(/\:\)/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/smile.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\:\(/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/sad.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\:D/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/biggrin.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/;\)/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/wink.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/8o/gi,'<img scr="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/w00t.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\:S/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/unsure.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\:P/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/tongue.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\^\^/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/squint.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\:\|/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/mellow.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\;\(/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/crying.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/8\)/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/cool.png" align="absmiddle" style="position:relative;top:-2px;"/>').replace(/\?\(/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/confused.png" align="absmiddle" style="position:relative;top:-6px;"/>').replace(/8\|/gi,'<img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/blink.png" align="absmiddle" style="position:relative;top:-2px;"/>');
		}
		document.getElementById('content').getElementsByTagName('table')[0].innerHTML = messagesHTML;
	}
	
	var arrayName = new Array();
	var arrayId = new Array();
	if(Get_Cookie("GCAOguildMates")){
		var temp = Get_Cookie("GCAOguildMates").split("#");
		var mate;
		for(var i=1; i < temp.length; i++){
			mate = temp[i].split("<");
			// arrayName[arrayName.length] = mate[0];
			// arrayId[arrayId.length] = mate[1];
			// var regexp = new RegExp(mate[0],"gi");
			// document.getElementById('content').innerHTML = document.getElementById('content').innerHTML.replace(regexp,"<a href=\""+GCAO_siteurl+"mod=player&p="+mate[1]+"&sh="+GCAO_secureCode+"\">"+mate[0]+'</a>');//"<a href=\""+GCAO_siteurl+"mod=player&p="+mate[1]+"&sh="+GCAO_secureCode+"\">"+mate[0]+'</a>');
		}
	}
}

function msgButtons(){
	var photoUpa='';
	var photoUpb='%3D';
	var photoDowna='%3D%3D';
	var photoDownb='';
	var buttonsElement = document.createElement('div');
	buttonsElement.setAttribute('id', 'buttonsElementUP');
	buttonsElement.setAttribute('style', 'position:absolute;z-index:150;top:312px;'+GCAO_left+':378px;');
	buttonsElement.innerHTML="<div id=\"buttonsElement\" style=\"position:fixed;\"><table cellpadding=\"0px\" cellspacing=\"0px\"><tr><td><a onclick=\"window.scrollTo(0,0);\"><img style=\"cursor:pointer;\" src=\""+photoUpa+"\" onmouseover=\"this.src='"+photoUpb+"'\" onmouseout=\"this.src='"+photoUpa+"'\"/></a></td></tr><tr><td><a onclick=\"window.scrollBy(0,document.body.scrollHeight)\"><img style=\"cursor:pointer;\" src=\""+photoDowna+"\" onmouseover=\"this.src='"+photoDownb+"'\" onmouseout=\"this.src='"+photoDowna+"'\"/></a></td></tr></table></div>";
	document.getElementById('header_game').appendChild(buttonsElement);
}

//################################################################################################################################
//## ITEMS THAT YOU CAN BUY / ΑΝΤΙΚΕΙΜΕΝΑ ΠΟΥ ΜΠΟΡΕΙΣ ΝΑ ΑΓΟΡΑΣΕΙΣ
//################################################################################################################################
function afford(){
	if(document.getElementById('shop')){
		if(document.getElementById('shop').getElementsByTagName('div')[1]){
			var item=document.getElementById('shop').getElementsByTagName('div')[1].id.match(/.\d+/i);
			
			var gold=document.getElementById('sstat_gold_val').innerHTML.replace(/\./g,'').match(/\d+/i)*1;
			var rubi=document.getElementById('sstat_ruby_val').innerHTML.replace(/\./g,'').match(/\d+/i)*1;
			for (i = 0; i <=6; i++){
				for (j = 0; j <=8; j++){
					if(document.getElementById('tOoLtIp_'+item+'_'+i+'_'+j)){
						if(document.getElementById('tOoLtIp_'+item+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res3/i)){
							document.getElementById(item+'_'+i+'_'+j).style.background='rgba(255, 0, 0, 0.2)';
							if(document.getElementById('tOoLtIp_'+item+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res3/i)[1]*1>rubi*1){
								document.getElementById(item+'_'+i+'_'+j).style.opacity='0.25';
							}
						}else{
							document.getElementById(item+'_'+i+'_'+j).style.opacity='1.00';
						}
						
						if(document.getElementById('tOoLtIp_'+item+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)){
							if(document.getElementById('tOoLtIp_'+item+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)[1]*1>gold*1){
								document.getElementById(item+'_'+i+'_'+j).style.opacity='0.25';
							}
						}else{
							document.getElementById(item+'_'+i+'_'+j).style.opacity='1.00';
						}
					}
				}
			}
		}
	}
}

function reAfford(){
	var oldSetToolTip = unsafeWindow.SetToolTip;
	unsafeWindow.SetToolTip = function (updateTooltip){
		if(updateTooltip){setTimeout(afford, 900);}
		return oldSetToolTip(updateTooltip);
	}
}

//################################################################################################################################
//## GUILD STORAGE INFO / ΠΛΗΡΟΦΟΡΙΕΣ ΣΤΗΝ ΑΠΟΘΗΚΗ ΤΑΓΜΑΤΟΣ
//################################################################################################################################
function storageInfo(){
	if(document.getElementById('shop')){
		var storage = document.getElementById('shop').parentNode.parentNode;
		var storageValue = document.createElement('div');
		storageValue.setAttribute('class','contentItem');
		storageValue.setAttribute('style','width:212px;margin-top:8px;');
		storageValue.innerHTML = '<h3 style="width:188px;height:20px;">'+L_StorageInfo+'</h3><div class="contentItem_content" style="width:180px;"><p> '+L_itemNum+' : <b id="itemNumber3"></b><br/>'+L_TotalValue+' : <b id="storageValue3"></b> <img src="'+img_gold+'"/></p></div>';
		storage.appendChild(storageValue);
		getStorageInfo();
		
		if(document.getElementById('char')){
			var margin=3;
			var storage = document.getElementById('char').parentNode;
			var storageValue = document.createElement('div');
			storageValue.setAttribute('class','contentItem');
			storageValue.setAttribute('style','width:304px;margin-top:16px;margin-left:'+margin+'px;');
			storageValue.innerHTML = '<h3 style="width:280px;height:20px;">'+L_StorageInfo+'</h3><div class="contentItem_content" style="width:272px;"><p> '+L_itemNum+' : <b id="itemNumber"></b><br/>'+L_TotalValue+' : <b id="storageValue"></b> <img src="'+img_gold+'"/></p></div>';
			storage.appendChild(storageValue);
			getInventoryInfo();
		}
	}
}

function getStorageInfo(){
	if(document.getElementById('shop')){
		var value = 0;
		var number = 0;
		var totalNumber = 0;
		var c=2;
		var stop=false;
		while(stop==false && c<10){
			if(document.getElementById('p35'+c+'_1_1')){
				stop = true;
				var x = c;
			}
			c++;
		}
		for (i = 0; i <=6; i++){
			for (j = 0; j <=8; j++){
				if(document.getElementById('tOoLtIp_p35'+x+'_'+i+'_'+j) && document.getElementById('p35'+x+'_'+i+'_'+j)){
					totalNumber++;
					if(document.getElementById('p35'+x+'_'+i+'_'+j).getAttribute('style').match(/visible/i)){
						if(document.getElementById('tOoLtIp_p35'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)){
							value += document.getElementById('tOoLtIp_p35'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)[1]*1;
						}
						number++;
					}
				}
			}
		}
		document.getElementById('itemNumber3').innerHTML = number+' / '+totalNumber;
		document.getElementById('storageValue3').innerHTML = dottedNumber(value);
	}
}

function resetStorageInfo(){
	var oldSetToolTip = unsafeWindow.SetToolTip;
	unsafeWindow.SetToolTip = function (updateTooltip){
		if(updateTooltip){setTimeout(getStorageInfo, 900);setTimeout(getInventoryInfo, 900);}
		return oldSetToolTip(updateTooltip);
	}
}


//################################################################################################################################
//## INVENTORY INFO
//################################################################################################################################
function inventoryInfo(){
	if(document.getElementById('char')){
		if(GCAO_mod=='overview'){
			var margin=10;
			document.getElementById('content').getElementsByTagName('table')[2].getElementsByTagName('td')[0].setAttribute('valign','top');
		}else{
			var margin=3;
			var storage2 = document.getElementById('bx0').parentNode.parentNode.parentNode.parentNode.parentNode;
			var storageValue = document.createElement('div');
			storageValue.setAttribute('class','contentItem');
			storageValue.setAttribute('style','width:214px;margin-top:2px;position:absolute;');
			storageValue.innerHTML = '<style>.box1{margin-top:100px;position:absolute;width:530px;z-index:501;}.button2{margin-top:-6px;}</style><h3 style="width:190px;height:20px;">'+L_StorageInfo+'</h3><div class="contentItem_content" style="width:182px;"><p> '+L_itemNum+' : <b id="itemNumber2"></b><br/>'+L_TotalValue+' : <b id="storageValue2"></b> <img src="'+img_gold+'"/> <b id="storageValue22"></b> <img src="http://s1.gladiatus.de/game/img/res3.gif"/></p></div>';
			storage2.appendChild(storageValue);
			getMerchantsInfo();
		}
		var storage = document.getElementById('char').parentNode;
		var storageValue = document.createElement('div');
		storageValue.setAttribute('class','contentItem');
		storageValue.setAttribute('style','width:304px;margin-top:10px;margin-left:'+margin+'px;');
		storageValue.innerHTML = '<h3 style="width:280px;height:20px;">'+L_StorageInfo+'</h3><div class="contentItem_content" style="width:272px;"><p> '+L_itemNum+' : <b id="itemNumber"></b><br/>'+L_TotalValue+' : <b id="storageValue"></b> <img src="'+img_gold+'"/></p></div>';
		storage.appendChild(storageValue);
		getInventoryInfo();
	}
}

function getMerchantsInfo(){
	if(document.getElementById('char')){
		var value = 0;
		var value2 = 0;
		var number = 0;
		var stop=false;
		
		var k=272;
		var found=false;
		while(k<=400 && !found){
			if(document.getElementById('tOoLtIp_p'+k+'_1_1')){var x=k;found=true;}
			k++;
		}
		
		for (i = 1; i <=6; i++){
			for (j = 1; j <=8; j++){
				if(document.getElementById('tOoLtIp_p'+x+'_'+i+'_'+j)){
					if(document.getElementById('p'+x+'_'+i+'_'+j).getAttribute('style').match(/visible/i)){
						if(document.getElementById('tOoLtIp_p'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)){
							value += document.getElementById('tOoLtIp_p'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)[1]*1;
							if(document.getElementById('tOoLtIp_p'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res3/i)){
								value2 += document.getElementById('tOoLtIp_p'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res3/i)[1]*1;
							}
						}
						number++;
					}
				}
			}
		}
		document.getElementById('itemNumber2').innerHTML = number+' / 48';
		document.getElementById('storageValue2').innerHTML = dottedNumber(value);
		document.getElementById('storageValue22').innerHTML = dottedNumber(value2);
	}
}

function getInventoryInfo(){
	if(document.getElementById('char')){
		var value = 0;
		var number = 0;
		var stop=false;
		
		if(document.getElementById('tOoLtIp_p512_1_1')){var x='2'}
		else if(document.getElementById('tOoLtIp_p513_1_1')){var x='3'}
		else if(document.getElementById('tOoLtIp_p514_1_1')){var x='4'}
		else if(document.getElementById('tOoLtIp_p515_1_1')){var x='5'}
		else if(document.getElementById('tOoLtIp_p516_1_1')){var x='6'}
		else if(document.getElementById('tOoLtIp_p517_1_1')){var x='7'}
		
		for (i = 1; i <=8; i++){
			for (j = 1; j <=4; j++){
				if(document.getElementById('tOoLtIp_p51'+x+'_'+i+'_'+j)){
					if(document.getElementById('p51'+x+'_'+i+'_'+j).getAttribute('style').match(/visible/i)){
						if(document.getElementById('tOoLtIp_p51'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)){
							value += document.getElementById('tOoLtIp_p51'+x+'_'+i+'_'+j).innerHTML.replace(/\./gi,'').match(/(\d+) <img[^\/]+\/img\/res2/i)[1]*1;
						}
						number++;
					}
				}
			}
		}
		document.getElementById('itemNumber').innerHTML = number+' / 32';
		document.getElementById('storageValue').innerHTML = dottedNumber(value);
	}
}

function resetInventoryInfo(){
	if(GCAO_mod=='overview'){
		var oldSetToolTip = unsafeWindow.SetToolTip;
		unsafeWindow.SetToolTip = function (updateTooltip){
			if(updateTooltip){setTimeout(getInventoryInfo, 900);}
			return oldSetToolTip(updateTooltip);
		}
	}else{
		var oldSetToolTip = unsafeWindow.SetToolTip;
		unsafeWindow.SetToolTip = function (updateTooltip){
			if(updateTooltip){setTimeout(getMerchantsInfo, 900);setTimeout(getInventoryInfo, 900);}
			return oldSetToolTip(updateTooltip);
		}
	}
}

//################################################################################################################################
//## STYLE FIXES / ΔΙΩΡΘΩΣΕΙΣ ΤΟΥ STYLE
//################################################################################################################################
function styleFixes(){
	var StyleFixesElement = document.createElement('div');
	StyleFixesElement.innerHTML="<style>.paging_button{height:26px;} ul#mainnav li a {line-height: 10px;padding-top:14px;} .selection {width:130px;}</style>";
	document.getElementById('header_game').appendChild(StyleFixesElement);
	
	if(document.getElementById('ticker1') && document.getElementsByTagName('input')[0]){//Buttom while traveling fix
		document.getElementsByTagName('input')[0].setAttribute('class','button1');
	}
	else if(GCAO_mod=='guild_library' && GCAO_submod=='noSubmod' && document.getElementById('content').getElementsByTagName('img')[1]){
		if(document.getElementsByTagName('b')[3].innerHTML=='Μπλοκαρισμένο(ς)'){
			document.getElementsByTagName('b')[3].innerHTML = 'Μπλοκ.';
		}
	}
	else if(GCAO_mod=='guild_main' && GCAO_submod=='noSubmod'){
		if(document.getElementById('mainbox')){
			if(document.getElementById('mainbox').getElementsByTagName('td')[1]){
				document.getElementById('mainbox').setAttribute('style','max-width: 600px; overflow: hidden; width: 530px;margin-'+GCAO_left+':-16px;');
			}
		}
	}
	else if(GCAO_mod=='guild_bath' && GCAO_submod=='guild_shoutbox'){
		if(document.getElementById('content').getElementsByTagName('table')[0]){
			document.getElementById('content').getElementsByTagName('table')[0].setAttribute('style','table-layout:fixed');
		}
	}
}

//################################################################################################################################
//## AUCTION / ΔΗΜΟΠΡΑΤΗΡΙΟ
//################################################################################################################################
//Number of items and bids / Αριθμός αντικειμένων και προσφορών
function auctionnumbers() {
	if(document.getElementById('auction_table')){
		var items = document.forms.length-1;
		var code=document.getElementById('auction_table').innerHTML;
		var bids=0;
		while(code.match('color:#8A0808;')){
			code=code.replace('color:#8A0808;','DONE');
			bids++
		}
		var numbersDiv = document.createElement('div');
		numbersDiv.setAttribute('id', 'mystylecolor');
		numbersDiv.setAttribute('class', 'title2_box');
		numbersDiv.setAttribute('style', 'margin-left:-17px;margin-right:-17px;margin-top:20px;');
		numbersDiv.innerHTML = '<div class=\"title_inner\"><center>'+L_itemNum+': ' + items + '<br>'+L_bidNum+': ' + bids + '</div></center></div>';
		document.getElementById('auction_filter').appendChild(numbersDiv);
	}
}

//Background color / Χρώμα παρασκηνίου
function auctionbgcolor() {
	if(document.getElementById('auction_table')){
		var itemNum=document.forms.length-1;
		var i=1;
		var color='';
		while(i<=itemNum && i<501){
			if(document.getElementById('auction_table').getElementsByTagName('td')[i-1]){
				if(document.getElementById('auction_table').getElementsByTagName('td')[i-1].getElementsByTagName('div')[4]){
					color=document.getElementById('auction_table').getElementsByTagName('td')[i-1].getElementsByTagName('div')[4].getAttribute('onmouseover');
					color=color.match(/color:..../gi)[0];
					if (color=='color:lime'){RGBcolor = '0, 255, 0, 0.1'}
					else if (color=='color:#515'){RGBcolor = '0, 70, 255, 0.2'}
					else if (color=='color:#E30'){RGBcolor = '227, 3, 224, 0.2'}
					else if (color=='color:#FF6'){RGBcolor = '255, 106, 0, 0.2'}
					else if (color=='color:whit'){RGBcolor = '255, 255, 255, 0.2'}
					else{RGBcolor = '90, 156, 255, 0.2'}
					document.getElementById('auction_table').getElementsByTagName('td')[i-1].getElementsByTagName('div')[4].setAttribute('style','background: rgba(' + RGBcolor + ');width:64px;height:96px;');
				}
				i++
			}
		}
	}
}

//More levels at search / Αναλυτικότερα επίπεδα στην αναζήτηση
function auctionitemlevel() {
	if(document.getElementById('auction_filter')){
		var minlevel = document.getElementById('auction_filter').innerHTML.match(/option value\="(\d+)/i)[1];
		var lvl = document.getElementById('icon_level').parentNode.getElementsByTagName('div')[1].innerHTML*1;
		var addedLevel = lvl * 0.25;
		var plusToInteger = addedLevel;
		var addFix = 0;
		while (plusToInteger > 1){plusToInteger = plusToInteger-1;}
		if (plusToInteger > 0.24){addFix = 1;}
		addedLevel = addedLevel-plusToInteger;
		if (lvl>36){var maxlevel = lvl+14;}
		else{var maxlevel = lvl+addedLevel+5+addFix;}
		
		var is = maxlevel-minlevel+1;
		var option = "";
		for (i = 0; i <is; i=i+2){
			var fnumber = -(is-maxlevel-i-1);
			if(document.getElementsByName('itemLevel')[1]){
				var selectedlevel = document.getElementsByName('itemLevel')[1].value;
			}
			if(selectedlevel == null){selectedlevel = minlevel}
			if(fnumber==selectedlevel){var OptSelect = 'selected="selected"'}
			else{var OptSelect = ""}
			option = option + '<option value="' + fnumber + '" ' + OptSelect + '>' + fnumber + '+</option>' ;
		}
		if(document.getElementsByName('itemLevel')[0]){
			document.getElementsByName('itemLevel')[0].innerHTML=option;
		}
	}
}

function autoFillAuctionFields(){
	if(document.getElementById('auction_table')){
		var divs = document.evaluate(".//div[@class='auction_bid_div']",document.getElementById('auction_table'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		var beforeCompareDiv = document.evaluate(".//div[@class='auction_item_div']", document.getElementById('auction_table'), null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
		if(divs.snapshotLength && (GM_getValue('af', true)==true || GM_getValue('hg', true)==true)){
			var bids=0;
			var value='';
			for(var i = 0; i < divs.snapshotLength; i++){
				if(!divs.snapshotItem(i).innerHTML.match(/: ([0-9]*\.*[0-9]*)&nbsp;<"/i)){
					//Autofill inputs / Μικρότερη προσφορά μέσα στο input
					var price = divs.snapshotItem(i).innerHTML.match(new RegExp(": ([0-9]*\.*[0-9]*)&nbsp;<"));
					if(!price) continue;
					price = price[1].replace(/\./g, "");
					var input = document.evaluate(".//input[@name='bid_amount']", divs.snapshotItem(i), null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
					if(GM_getValue('af', true) == true){
						if(input.snapshotLength){input.snapshotItem(0).value = price;}
					}
					//Items where you can hide gold
					if(GM_getValue('hg', true)==true){
						value=document.getElementById('auction_table').getElementsByTagName('td')[i].getElementsByTagName('div')[4].getAttribute('onmouseover');
						value=value.match(/([0-9]*\.*[0-9]*) <img/gi)[0].replace('.','').replace(' <img','')*1;
						if(value==price){
							document.getElementById('auction_table').getElementsByTagName('td')[i].getElementsByTagName('div')[5].getElementsByTagName('input')[0].style.backgroundColor="#FFCC66";
						}
						//More info about prices
						if(GM_getValue('ap', true)==true){
							if(value==price){
								document.getElementById('auction_table').getElementsByTagName('td')[i].getElementsByTagName('div')[7].innerHTML+='<br><font color="#555555">'+L_hideGoldHere+'</font>';
							}else{
								document.getElementById('auction_table').getElementsByTagName('td')[i].getElementsByTagName('div')[7].innerHTML+='<br><font color="#555555">'+L_priceValue+' + '+dottedNumber(price-value)+' <img border="0" align="absmiddle" src="'+img_gold+'"></font>';
							}
						}
						//Check items you can affored
						if(GM_getValue('cf', true)==true){
							var money=document.getElementById('sstat_gold_val').innerHTML.replace(/\./gi,'')*1;
							if(money>=price){
								document.getElementById('auction_table').getElementsByTagName('td')[i].getElementsByTagName('div')[6].innerHTML+='<font style="color:green;float:'+GCAO_right+';">&#10003;</font>';
							}else{
								document.getElementById('auction_table').getElementsByTagName('td')[i].getElementsByTagName('div')[6].innerHTML+='<font style="color:red;float:'+GCAO_right+';">&#10007;</font>';
							}
						}
					}
				}
			}
		}
	}
}

//AUCTION COMPARE TOOLTIPS
function auctionCompareTooltips(){
	if(document.getElementById('auction_table')){
		var url=GCAO_siteurl.replace('index.php?','');
		var character=GM_getValue('character_tooltips_'+GCAO_lang+'_'+GCAO_server, 0);
		
		var selectCharacterDiv = document.createElement('span');
		selectCharacterDiv.setAttribute('id', 'selectCharacterDiv');
		selectCharacterDiv.setAttribute('style', 'position:fixed;margin-'+GCAO_left+':-118px;margin-top:40px;z-index:502;height:800px;');
		selectCharacterDiv.innerHTML = '<input id="ActiveCharacter" type="hidden" value="'+character+'">'+
		'<div id="doll0" style="top:5px" class="charmercsel charmercsel_inaktive" onmouseover="document.getElementById(\'ActiveCharacter\').value=0;"><div class="charmercpic"></div></div>'+
		'<div id="doll1" style="top:50px" class="charmercsel charmercsel_inaktive" onmouseover="document.getElementById(\'ActiveCharacter\').value=1;"><div class="charmercpic"></div></div>'+
		'<div id="doll2" style="top:95px" class="charmercsel charmercsel_inaktive" onmouseover="document.getElementById(\'ActiveCharacter\').value=2;"><div class="charmercpic"></div></div>'+
		'<div id="doll3" style="top:140px" class="charmercsel charmercsel_inaktive" onmouseover="document.getElementById(\'ActiveCharacter\').value=3;"><div class="charmercpic"></div></div>'+
		'<div id="doll4" style="top:185px" class="charmercsel charmercsel_inaktive" onmouseover="document.getElementById(\'ActiveCharacter\').value=4;"><div class="charmercpic"></div></div>'+
		'<div id="doll5" style="top:230px" class="charmercsel charmercsel_inaktive" onmouseover="document.getElementById(\'ActiveCharacter\').value=5;"><div class="charmercpic"></div></div>'+
		'';
		document.getElementById('mainnav').appendChild(selectCharacterDiv);
		
		doTheCompareTables(true);
		
		document.getElementById("doll0").addEventListener("click", doTheCompareTables, false);
		document.getElementById("doll1").addEventListener("click", doTheCompareTables, false);
		document.getElementById("doll2").addEventListener("click", doTheCompareTables, false);
		document.getElementById("doll3").addEventListener("click", doTheCompareTables, false);
		document.getElementById("doll4").addEventListener("click", doTheCompareTables, false);
		document.getElementById("doll5").addEventListener("click", doTheCompareTables, false);
	}
}

function doTheCompareTables(firstTime){
	var character=document.getElementById('ActiveCharacter').value*1;
	
	var code=GM_getValue('item_tooltips_'+character+'_'+GCAO_lang+'_'+GCAO_server, 'No Items');
	if(code=='No Items' || code==''){alert(L_itemsAreNotSaved);}
	else{
		code=decodeASCII(code);
		GM_setValue('character_tooltips_'+GCAO_lang+'_'+GCAO_server, character);
		var url=GCAO_siteurl.replace('index.php?','');
		for(var i = 0; i <= 5; i++){
			document.getElementById('doll'+i).setAttribute('class','charmercsel charmercsel_inaktive');
			document.getElementById('doll'+i).getElementsByTagName('div')[0].setAttribute('style','background-image:url('+url+'img/interface/doll'+(i+1)+'_inactive.gif)');
		}
		document.getElementById('doll'+character).setAttribute('class','charmercsel charmercsel_aktive');
		document.getElementById('doll'+character).getElementsByTagName('div')[0].setAttribute('style','background-image:url('+url+'img/interface/doll'+(character+1)+'_active.gif)');
	
		code=code.split('@');
		
		//0.Helmet,1.Sword,2.Shield,3.Armor,4.Ring,5.Ring,6.Gloves,7.Boots,8.Amulet
		var itemNum=document.forms.length-1;
		if(document.getElementById('auction_filter').getElementsByTagName('select').length>4){var num=3;}else{var num=1;}
		var itemType = Number(document.getElementById('auction_filter').getElementsByTagName('select')[num].innerHTML.match(/option value="(\d+)" selected="selected"/i)[1]);
		//all, weapons, shields, armors, helmets, gloves, boots, rings, amulets
		switch(itemType){
			case 0: itemType=9;break;
			case 1: itemType=1;break;
			case 2: break;
			case 3: break;
			case 4: itemType=0;break;
			case 5: itemType=6;break;
			case 8: itemType=7;break;
			case 6: itemType=4;break;
			case 9: itemType=8;break;
			case 15: itemType=11;break;
			default: itemType=10;break;
		}
		
		//not wearing item on the first player->
		if(itemType==4){//Rings
			for(var i = 0; i < itemNum; i++){
				if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3]){
					if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4]){
						document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4].innerHTML=code[4];
						if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[5]){
							document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[5].innerHTML=code[5];
						}else{
							var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3].innerHTML;
							document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML='<tbody><tr><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+items_tooltip+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[4]+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[5]+'</table></td><tr/></tbody>';
						}
					}else{
						var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3].innerHTML;
						document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML='<tbody><tr><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+items_tooltip+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[4]+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[5]+'</table></td><tr/></tbody>';
					}
				}else{itemNum++;}
			}
		}else if(itemType<9){//Other items
			for(var i = 0; i < itemNum; i++){
				if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3]){
					if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4]){
						document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4].innerHTML=code[itemType];
					}else{
						var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3].innerHTML;
						document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML='<tbody><tr><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+items_tooltip+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[itemType]+'</table></td><tr/></tbody>';
					}
				}else{itemNum++;}
			}
		}else if(itemType==11){//Mercenaries
			if(character!=1 && character!=0){
				var code2=GM_getValue('mercenaries_tooltips_'+GCAO_lang+'_'+GCAO_server, 'No mercenaries');
				if(code2!='No mercenaries' && code2!=''){
					code2=decodeASCII(code2);
					code2=code2.split('@');
					for(var i = 0; i < itemNum; i++){
						if(document.getElementById('New_Tooltip_'+i)){
							document.getElementById('New_Tooltip_'+i).innerHTML=code2[character-2];
						}else if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[0]){
							var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML;
							document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[0].innerHTML='<tbody><tr><td valign="top"><table>'+items_tooltip+'</table></td><td valign="top"><table id="New_Tooltip_'+i+'">'+code2[character-2]+'</table></td><tr/></tbody>';
						}else{itemNum++;}
					}
				}else{
					alert(L_mercenariesAreNotSaved);
				}
			}else if(document.getElementById('New_Tooltip_1') || document.getElementById('New_Tooltip_2') || document.getElementById('New_Tooltip_3')){
				for(var i = 0; i < itemNum; i++){
					if(document.getElementById('New_Tooltip_'+i)){
						document.getElementById('New_Tooltip_'+i).innerHTML='';
					}else{itemNum++;}
				}
			}
		}else if(itemType==9 && itemNum<=300){//"All" option
			var itemNum2=itemNum-1;
			var itemImage=document.getElementById('auction_table').innerHTML.match(/\/img\/item\/(\d+)_\d+\.gif/gi);
			var code2=GM_getValue('mercenaries_tooltips_'+GCAO_lang+'_'+GCAO_server, 'No mercenaries');
			for(var i = 0; i < itemNum; i++){
				if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3]){
					itemType=getTheItemType(itemImage[itemNum2]);
					if(itemType==4){
						if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4]){
							document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4].innerHTML=code[4];
							if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[5]){
								document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[5].innerHTML=code[5];
							}else{
								var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3].innerHTML;
								document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML='<tbody><tr><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+items_tooltip+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[4]+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[5]+'</table></td><tr/></tbody>';
							}
						}else{
							var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3].innerHTML;
							document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML='<tbody><tr><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+items_tooltip+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[4]+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[5]+'</table></td><tr/></tbody>';
						}
					}else if(itemType==11){
						if(character!=1 && character!=0){
							if(code2!='No mercenaries' && code2!=''){
								code2=decodeASCII(code2);
								code2=code2.split('@');
								if(document.getElementById('New_Tooltip_'+i)){
									document.getElementById('New_Tooltip_'+i).innerHTML=code2[character-2];
								}else if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[0]){
									var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML;
									document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[0].innerHTML='<tbody><tr><td valign="top"><table>'+items_tooltip+'</table></td><td valign="top"><table id="New_Tooltip_'+i+'">'+code2[character-2]+'</table></td><tr/></tbody>';
								}else{itemNum++;}
							}
						}else if(document.getElementById('New_Tooltip_'+i)){
							if(document.getElementById('New_Tooltip_'+i)){
								document.getElementById('New_Tooltip_'+i).innerHTML='';
							}else{itemNum++;}
						}
					}else if(itemType!=10){
						if(document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4]){
							document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[4].innerHTML=code[itemType];
						}else{
							var items_tooltip=document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[3].innerHTML;
							document.getElementById('tooltips').getElementsByTagName('div')[i].getElementsByTagName('table')[2].innerHTML='<tbody><tr><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+items_tooltip+'</table></td><td valign="top"><table class="tooltipBox" cellspacing="2" cellpadding="2" valign="middle">'+code[itemType]+'</table></td><tr/></tbody>';
						}
					}
					itemNum2=itemNum2-1;
				}else{itemNum++;}
			}
		}
		
	}
}

function getTheItemType(itemImage){
	itemImage=itemImage.match(/(\d+)_/i)[1]*1;
	//alert(itemImage);
	var itemType=itemImage;
	switch(itemType){
		//0.Helmet,1.Sword,2.Shield,3.Armor,4.Ring,5.Ring,6.Gloves,7.Boots,8.Amulet
		//case 0: itemType=9;break;
		case 1: itemType=1;break;
		case 2: itemType=2;break;
		case 3: itemType=3;break;
		case 4: itemType=0;break;
		case 5: itemType=6;break;
		case 6: itemType=4;break;//Rings
		case 8: itemType=7;break;
		case 9: itemType=8;break;
		case 15: itemType=11;break;//Mercenaries
		default: itemType=10;break;//Not compared items
	}
	return itemType;
}

//Save the items of the player when you click
function rememberItems(event){
	if(GCAO_allresult.match(/doll=(2|3|4|5|6)/i)){
		var character=GCAO_allresult.match(/doll=(\d)/i)[1]-1;
	}else{var character=0;}
	var code='';
	for(var i=0;i<=9;i++){
		if(document.getElementById('tOoLtIp_p'+(i+2)+'_1_1')){
			if(document.getElementById('tOoLtIp_p'+(i+2)+'_1_1').getElementsByTagName('table')[2]){
				code+=document.getElementById('tOoLtIp_p'+(i+2)+'_1_1').getElementsByTagName('table')[2].innerHTML+'@';
			}else if(document.getElementById('tOoLtIp_p'+(i+2)+'_1_1').getElementsByTagName('table')[0] && !document.getElementById('tOoLtIp_p'+(i+2)+'_1_1').getElementsByTagName('table')[1]){
				code+=document.getElementById('tOoLtIp_p'+(i+2)+'_1_1').getElementsByTagName('table')[0].innerHTML+'@';
			}else{
				code+='<tbody><tr><td nowrap="nowrap" colspan="2" style="color:#DDD; font-weight: bold; font-size:9pt">'+L_notWearingAnItem+'</td></tr></tbody>'+'@';
			}
		}
	}
	//code=code.split('@');
	//document.getElementById('content').innerHTML='<table>'+code[0]+code[1]+code[2]+code[3]+code[4]+code[5]+code[6]+code[7]+code[8]+'</table>';
	code=toASCII(code);
	GM_setValue('item_tooltips_'+character+'_'+GCAO_lang+'_'+GCAO_server, code);
	//SAVE MERCENARIES TOOLTIPS
	if(character==1){
		var code2='';
		for(var i=12;i<=15;i++){
			if(document.getElementById('tOoLtIp_p'+(i)+'_1_1').getElementsByTagName('table')[2]){
				code2+=document.getElementById('tOoLtIp_p'+(i)+'_1_1').getElementsByTagName('table')[1].innerHTML+'@';
			}else{
				code2+='<tbody><tr><td nowrap="nowrap" colspan="2" style="color:#DDD; font-weight: bold; font-size:9pt">'+L_notWearingAMercenary+'</td></tr></tbody>'+'@';
			}
		}
		code2=toASCII(code2);
		GM_setValue('mercenaries_tooltips_'+GCAO_lang+'_'+GCAO_server, code2);
	}
}

//################################################################################################################################
//## ITEM LIST / ΛΙΣΤΑ ΑΝΤΙΚΕΙΜΕΝΩΝ
//################################################################################################################################
function itemList(){
	//Param string with options "n[name]v[value]c[color]|n[name1]v[value1]c[color1]..." v[value] and c[color] are optional
	//USE THE COLORS: 
	//Items names: [for green items: #0D960D] [for pink items: #E303E0] [for blue items: #0046FF]
	//Upgrades: blue, yellow, green, purple, red, orange (yellow and orange will auto change by script so you can read the letters in game)
	if(GCAO_lang=='fr'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Matéus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Taliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF]|n[Tuneses]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Urothiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[Agression]|n[Assassinat]|n[Delicatesse]|n[Dragon]|n[Elimination]|n[Enfer]|n[Paradis]';
		var foodList = 'n[No translation available]v[ ]';
		var tempImpList = 'n[No translation available]v[ ]';
		var impList = 'n[No translation available]v[ ]';
	}
	else if(GCAO_lang=='gr'){
		var prefixList='n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]|n[Δαιμονοφονιάδες]';
		var suffixList='n[Ο κατακερματισμός της]|n[ΚΑΘΑΡΟΤΗΤΟΣ]|n[Κατεδάφιση του]|n[Πολεμικών τεχνών]|n[Της αυτοδιοίκησης]|n[Της προσευχής]|n[Του αφανή]|n[Του διατάγματος]|n[από τον όσιο]|n[της αγάπης]|n[της αλαζονείας]|n[της αλήθειας]|n[της ανάκαμψης]|n[της ανάπλασης]|n[της αναπόδρασης]|n[της ανδρικής ταυτότητας]|n[της ανεξαρτησίας]|n[της απόκρυψης]|n[της αρμονίας]|n[της βιαιότητας]|n[της γενναιοδωρίας]|n[της γης]|n[της διαμάχης]|n[της δολοφονίας]|n[της δύναμης]|n[της ελευθερίας]|n[της Επίθεσης]|n[της επιτυχίας]|n[της επιχειρηματικότητας]|n[της ετοιμότητας]|n[της ευγένειας]c[rgb(0, 70, 255)]|n[της ικανοποίησης]|n[της κολάσεως]c[rgb(0, 70, 255)]|n[της καταστροφής]|n[της μαθητείας]|n[της μάχης]|n[της μεγαλοπρέπειας]|n[της μοχθηρίας]|n[της ορειβασιας]|n[της πίστης]|n[της ποιότητος]|n[της πρόληψης]|n[της προσβολής]|n[της προστασίας]|n[της σιωπής]|n[της σύγχυσης]|n[της ταραχής]|n[της Τελετής]|n[της τιμής]|n[της τρέλας]|n[της φωτιάς]|n[της χάρης]|n[της υπόσχεσης]|n[της υποχώρησης]|n[του Άρη]|n[του βαπτίσματος]|n[του δράκου]|n[του εμποδίου]|n[του ενδιαφέροντος]|n[του ευνουχισμού]|n[του ηλιου]|n[του θανάτου]|n[του θύματος]|n[του μπλοκαρίσματος]|n[του παραδείσου]c[rgb(0, 70, 255)]|n[του φεγγαριού]|n[των καταραμένων]|n[των τραυμάτων]|n[of Chakra]';
		var foodList='n[Κοτόπουλο]|n[Κρέας]|n[Μήλο]|n[Μπανάνες]|n[Μπριζόλα]|n[Τυρί]|n[Φίλτρο ζωής]|n[Ψάρι]|n[Ψωμάκι]|n[Ψωμί]';
		var tempImpList='n[Λευκάγκαθα]|n[Μουκάλια δύναμης]v[δύναμης]c[blue]|n[Μουκάλια ικανότητας]v[ικανότητας]c[yellow]|n[Μουκάλια επιδεξιότητας]v[επιδεξιότητας]c[green]|n[Μουκάλια φυσικής κατάστασης]v[φυσικής κατάστασης]c[#FF7F00]|n[Μουκάλια χαρίσματος]v[χαρίσματος]c[purple]|n[Μουκάλια εξυπνάδας]v[εξυπνάδας]c[red]n[Ρίζα από τάιγκα]';
		var impList='n[Εξοπλισμός]|n[Κίτρινη πούδρα]c[yellow]|n[Κόκκινη πούδρα]c[red]|n[Μπλέ πούδρα]c[blue]|n[Μυλόπετρα]|n[Μωβ πούδρα]c[purple]|n[Πορτοκαλί πούδρα]c[#FF7F00]|n[Πράσινη πούδρα]c[green]|n[Σφουγγάρι καθαρίσματος]';
	}
	else if(GCAO_lang=='cr'){
		var prefixList = 'n[Ichoruovo]|n[Opiehnzovo]|n[Talethovo]|n[Trafanovo]|n[Luciusovo]|n[Tantusovo]|n[Gaiovo]|n[Mateovo]|n[Marcusovo]|n[Adendathielovo]|n[Ameliovo]|n[Amovielovo]|n[Anchoronsovo]|n[*Appius]|n[Asaysethovo]|n[Asendakovo]|n[Ashitillovo]|n[Baciasovo]|n[Barbekuusovo]|n[*Beasthammers]|n[Berryho]|n[Bilgovo]|n[*Calodiens]|n[Chabdynovo]|n[Chaliniovo]|n[*Chealoths]|n[Cheggovsovo]|n[Chuckovo]|n[Ciallanovo]|n[Cisienovo]|n[*Decimus]|n[*Denovs]|n[Dexterovo]|n[Doitremovo]|n[*Doomeniks]|n[Elrarangovo]|n[Elvilmandelovo]|n[Elywenovo]|n[Evotavovo]|n[Fernabastovo]|n[Fitschisovo]|n[Fraboovo]|n[Frickoysovo]|n[Fustrielsovo]|n[Galarandovo]|n[Gidrasovo]|n[Gonakovo]|n[Grankovo]|n[*Grasscrawlers]|n[Heudoisovo]|n[Heuhoisovo]|n[Ibiwanovo]|n[Isundelovo]|n[Jennifeřino]|n[Kedyssiovo]|n[Kerrannasovo]|n[Korksovo]|n[Kosmonasovo]|n[Leandronimusovo]|n[Liloelsovo]|n[Lothayovo]|n[Lulusovo]|n[Lurtscharasovo]|n[*Manius]|n[Medonisovo]|n[Melaneosovo]|n[*Mermereus]|n[Mimasovo]|n[*Monychustas]|n[*Mooncruchers]|n[Narithovo]|n[Orleldovo]|n[Peragovo]|n[Phalangensovo]|n[*Poirins]|n[Purmannsovo]|n[Rakrestovo]|n[Rayolovo]|n[Redosovo]|n[Reinkesovo]|n[Ronaldasovo]|n[Rynightovo]|n[Sentarionsovo]|n[*Servius]|n[Sextovo]|n[Shivasovo]|n[*Skiterus]|n[Sphingensovo]|n[Spuriovo]|n[Stoybaersovo]|n[Sugovo]|n[Thorstenovo]|n[*Tinothiels]|n[Tûnêsésovo]|n[Umbrosovo]|n[Umfetasovo]|n[Umilawenovo]|n[Uridovo]|n[Uróthienovo]|n[Vuthielovo]|n[Xenphlamesovo]|n[Xusovo]|n[Yasovo]|n[Zickezackesovo]|n[Zimbrisovo]|n[Lulusovo]|n[Zeindrovo]';
        var suffixList = 'n[nebes]|n[pekla]|n[výhody]|n[rozkoše]|n[harmonie]|n[země]|n[draka]|n[kritického zásahu]|n[smrti]|n[lásky]';
        var foodList = 'n[Pečivo]v[chleb]|n[Jablko]|n[Banány]|n[Kuře]';
        var tempImpList = 'n[Lahve charismatu]v[charisma]c[purple]|n[Lahve dovednosti]v[bystrost]c[yellow]|n[Lahve obratnosti]v[obratnost]c[green]|n[Lahve síly]v[síly]c[blue]|n[Lahve inteligence]v[inteligence]c[red]|n[Lahve odolnosti]v[odolnosti]c[orange]';
        var impList = 'n[Brousek]|n[Ochranné vybavení]c[#4C3430]|n[Houba]c[grey]|n[Fialový prach]c[purple]|n[Žlutý prach]c[yellow]|n[Modrý prášek]c[blue]|n[Rudý prášek]c[red]|n[Oranžový prach]c[orange]';
	}
	else if(GCAO_lang=='us' || GCAO_lang=='com'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[No translation available]v[ ]';
		var foodList = 'n[Apple]|n[Bananas]|n[Bread]|n[Bread rolls]|n[Cheese]|n[Chicken]|n[Fish]|n[Healing potion]|n[Meat haunch]|n[Steak]';
		var tempImpList = 'n[Bottles of strength]c[blue]|n[Bottles of aptness]c[yellow]|n[Bottles of agility]c[green]|n[Bottles of constitution]c[orange]|n[Bottles of charisma]c[purple]|n[Bottles of Inteligence]c[red]|n[Howthorn]|n[Taigaroot]';
		var impList = 'n[Blue powder]c[blue]|n[Detergent sponge]|n[Green powder]c[green]|n[Grindstone]|n[Orange powder]c[orange]|n[Protective gear]|n[Red powder]c[red]|n[Violet powder]c[purple]|n[Yellow powder]c[yellow]';
	}
	else if(GCAO_lang=='lv'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[No translation available]v[ ]';
		var foodList = 'n[Ābols]|n[Banāni]|n[Maize]|n[Maizes rullīši]|n[Siers]|n[Cālis]|n[Zivs]|n[Dzīvības dzira]|n[Gaļas gurns]|n[Steiks]';
		var tempImpList = 'n[Spēka pudele]c[blue]|n[HVZ pudele]c[yellow]|n[Veiklības pudele]c[green]|n[Konstitūcijas pudele]c[orange]|n[Valdzinājuma pudele]c[purple]|n[Inteliģences pudele]c[red]|n[Vilkābele]|n[Taigas sakne]';
		var impList = 'n[Zilais pulveris]c[blue]|n[Tīrošā švamme]|n[Zaļais pulveris]c[green]|n[Galoda]|n[Oranžais pulveris]c[orange]|n[Aizsargājošs apģērbs]|n[Sarkanais pulveris]c[red]|n[Violetais pulveris]c[purple]|n[Dzletenais pulveris]c[yellow]';
	}
	else if(GCAO_lang=='de'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[Hölle]|n[Paradies]';
		var foodList = 'n[Apfel]|n[Bananen]|n[Brot]|n[Brötchen]|n[Käse]|n[Hähnchen]|n[Fisch]|n[Heiltrank]|n[Fleischkeule]|n[Steak]';
		var tempImpList = 'n[Flasche der Stärke]c[blue]|n[Flasche des Geschicks]c[yellow]|n[Flasche der Beweglichkeit]c[green]|n[Flasche der Konstitution]c[orange]|n[Flasche des Charismas]c[purple]|n[Flasche der Intelligenz]c[red]|n[Weißdornen]|n[Taigawurzel]|n[Gingkoblätter]';
		var impList = 'n[Blaues Pulver]c[blue]|n[Reinigender Schwamm]|n[Grünes Pulver]c[green]|n[Schleifstein]|n[Orangenes Pulver]c[orange]|n[Rüstungsset]|n[Rotes Pulver]c[red]|n[Violettes Pulver]c[purple]|n[Gelbes Pulver]c[yellow]';
	}
	else if(GCAO_lang=='nl'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Travans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[Hel]|n[Hemel]n[Profijt]';
		var foodList = 'n[Appel]|n[Bananen]|n[Brood]|n[Brood rollen]|n[Kaas]|n[Kip]|n[Vis]|n[Levensdrankje]|n[Stuk vlees]|n[Biefstuk]';
		var tempImpList = 'n[Flesje van kracht]c[blauw]|n[Flesje van doeltreffendheid]c[geel]|n[Flesje van de snelheid]c[groen]|n[Bottles of constitution]c[orange]|n[Flesje van charisma]c[paars]|n[Flesje van intelligentie]c[rood]|n[Howthorn]|n[Taigaroot]';
		var impList = 'n[Blauw poeder]c[blue]|n[Reinigings spons]|n[Groen poeder]c[green]|n[Slijpsteen]|n[Oranje poeder]c[orange]|n[Beschermende uitrusting]|n[Rood poeder]c[red]|n[Paars poeder]c[purple]|n[Geel poeder]c[yellow]';
	}
	else if(GCAO_lang=='hu'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calodiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Taliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tuneses]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Urothiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[Hell]|n[Paradise]';
		var foodList = 'n[Alma]|n[Banán]|n[Kenyér]|n[Kenyér szeletek]|n[Sajt]|n[Csirke]|n[Hal]|n[Életerő ital]|n[Comb hús]|n[Steak]';
		var tempImpList = 'n[Az erő palackjai]c[blue]|n[A talpraesettség palackjai]c[yellow]|n[A mozgékonyság palackjai]c[green]|n[Az alkat palackjai]c[orange]|n[A karizma palackjai]c[purple]|n[Az intelligencia palackjai]c[red]|n[Howthorn]|n[Taigaroot]';
		var impList = 'n[kék púder]c[blue]|n[tisztító szivacs]|n[zöld púder]c[green]|n[köszörűkő]|n[narancs púder]c[orange]|n[védőfelszerelés]|n[vörös púder]c[red]|n[lila púder]c[purple]|n[sárga púder]c[yellow]';
	}
	else if(GCAO_lang=='it'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList='n[No translation available]v[ ]';
		var foodList = 'n[Mela]|n[Banana]|n[Pane]|n[Pagnotta]|n[Formaggio]|n[Pollo]|n[Pesce]|n[Pozione]|n[Cosciotto]|n[Bistecca]';
		var tempImpList = 'n[Bottiglie della forza]c[blu]|n[Bottiglie della destrezza]c[gialla]|n[Bottiglie dell\'agiltà]c[verde]|n[Bottiglie della costituzione]c[arancione]|n[Bottiglie del carisma]c[viola]|n[Bottiglie dell\'intelligenza]c[rossa]|n[Biancospino]|n[Eleuterococco]';
		var impList = 'n[Cipria Blu]c[blu]|n[Spugna Detergente]|n[Cipria Verde]c[verde]|n[Mola]|n[Cipria Arancione]c[aranzione]|n[Attrezzatura Protettiva]|n[Cipria Rossa]c[rossa]|n[Cipria viola]c[viola]|n[Cipria gialla]c[giallo]';
	}
	else if(GCAO_lang=='pl'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[No translation available]v[ ]';
		var foodList = 'n[Jabłko]|n[Banan]|n[Chleb]|n[Bułki]|n[Ser]|n[Kurczak]|n[Ryba]|n[Healing potion]|n[Udziec]|n[Mięso]';
		var tempImpList = 'n[Bottles of strength]c[blue]|n[Bottles of aptness]c[yellow]|n[Bottles of agility]c[green]|n[Bottles of constitution]c[orange]|n[Bottles of charisma]c[purple]|n[Bottles of Inteligence]c[red]|n[Howthorn]|n[Taigaroot]';
		var impList = 'n[Blue powder]c[blue]|n[Detergent sponge]|n[Green powder]c[green]|n[Grindstone]|n[Orange powder]c[orange]|n[Protective gear]|n[Red powder]c[red]|n[Violet powder]c[purple]|n[Yellow powder]c[yellow]';
	}
	else if(GCAO_lang=='pt'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[No translation available]v[ ]';
		var foodList = 'n[Maçã]|n[Bananas]|n[Pão]|n[Rolos de pão]|n[Queijo]|n[Frango]|n[Pesca]|n[Porção de saúde]|n[Bocado de carne]|n[Filete]';
		var tempImpList = 'n[Garrafa de força]c[blue]|n[Garrafa de habilidade]c[yellow]|n[Garrafa de agilidade]c[green]|n[Garrafa de constituição]c[orange]|n[Garrafa de carisma]c[purple]|n[Garrafa de Inteligência]c[red]|n[Howthorn]|n[Raíz de taiga]';
		var impList = 'n[pó azul]c[blue]|n[esponja de detergente]|n[pó verde]c[green]|n[Pedra de amolar]|n[pó laranja]c[orange]|n[Equipamento protector]|n[pó vermelho]c[red]|n[pó violeta]c[purple]|n[pó amarelo]c[yellow]';
	}
	else if(GCAO_lang=='cz'){
		var prefixList = 'n[Adendathielovo]|n[Ameliovo]|n[Amovielovo]|n[Anchoronovo]|n[Appiovo]|n[Asaysethovo]|n[Asendakovo]|n[Ashitillovo]|n[Baciasovo]|n[Barbekuuovo]|n[Démonobijcovo]|n[Berryho]|n[Bilgovo]|n[Calódienovo]c[#0D960D]|n[Chabdynovo]|n[Chaliniovo]|n[Chealothovo]|n[Cheggovsovo]|n[Chuckovo]|n[Ciallanovo]|n[Cisienovo]|n[Dairovo]|n[Decimovo]|n[Denovo]|n[Dexterovo]|n[Doitremovo]|n[Doomenikovo]|n[Elrarangovo]|n[Elvilmandelovo]|n[Elywenovo]|n[Evotavovo]|n[Fernabastovo]|n[Fitschovo]|n[Fraboovo]|n[Frickoyovo]|n[Frientovo]|n[Fustrielovo]|n[Gadriewenovo]|n[Gaiovo]c[#E303E0]|n[Galarandovo]|n[Gidrasovo]|n[Gonakovo]|n[Grankovo]|n[Grasscrawlerovo]|n[Heudoisovo]|n[Heuhoiovo]|n[Ibiwanovo]|n[Ichoruovo]c[#E303E0]|n[Ismaelsovo]|n[Isundelovo]|n[Jennifeřino]|n[Kedyssiovo]|n[Kerrannasovo]|n[Korksovo]|n[Kosmonovo]|n[Leandronimovo]|n[Liloelovo]|n[Lothayovo]|n[Luciovo]c[#E303E0]|n[Lulovo]|n[Lurtscharovo]|n[Mandalovo]|n[Maniovo]|n[Marcovo]|n[Mateovo]c[#E303E0]|n[Medoniovo]|n[Melanchaetovo]|n[Melaneovo]|n[Mermerovo]|n[Měsíční]|n[Mimasovo]|n[Monychustovo]|n[Narithovo]|n[Opiehnzovo]c[#E303E0]|n[Orleldovo]|n[Peragoovo]|n[Phalangenovo]|n[Poirinovo]|n[Purmannsovo]|n[Rakrestovo]|n[Rayolovo]|n[Redosovo]|n[Reinkovo]|n[Ronaldovo]|n[Rynightovo]|n[Sentarionovo]|n[Serviovo]|n[Sextovo]|n[Shivovo]|n[Skiterovo]|n[Solitanovo]|n[Sfingino]|n[Spuriovo]|n[Stoybaerovo]|n[Sugovo]|n[Talethovo]c[#0046FF]|n[Taniovo]|n[Tantovo]c[#E303E0]|n[Thorstenovo]|n[Tinothielovo]|n[Titovo]|n[Trafanovo]c[#0046FF5)]|n[Tûnêsovo]|n[Umbrovo]|n[Umfetovo]|n[Umilawenovo]|n[Uridovo]|n[Uróthienovo]|n[Vuthielovo]|n[Watzmannovo]|n[Xenphlamovo]|n[Xusovo]|n[Yas?]|n[Zeindrovo]c[#0D960D]|n[Zickezackovo]|n[Zimbriovo]|n[Zomberovo]';
		var suffixList = 'n[agresivity]c[#E303E0]|n[beznaděje]|n[bezúčelnosti]|n[blesku duchů]|n[bojových umění]|n[bolesti]|n[brutality]|n[cti]|n[ctnosti]|n[deště]|n[draka]c[#E303E0]|n[eliminace]c[#E303E0]|n[hojnosti]|n[hoplíta]|n[hvězd]|n[chakry]|n[iluze]|n[jednoduchosti]|n[jedu]|n[jistoty]|n[klidu]|n[konfliktu]|n[koroze]|n[kouzel]|n[kritického zásahu]c[#E303E0]|n[krve]|n[lesů]|n[Marta]c[#E303E0]|n[masa]|n[měsíce]|n[míru]|n[moci]|n[momentů]|n[moře]|n[mužnosti]|n[naděje]|n[namyšlenosti]|n[návratu]|n[nebes]|n[nemoci]|n[nemrtvých]|n[nenávisti]|n[neviditelnosti]|n[nevyhnutelnosti]|n[nezávislosti]|n[ničení]|n[nostalgie]|n[oběti]|n[oblaků]|n[obrácení]|n[obyčejnosti]|n[odplaty]|n[odvahy]|n[ohně]|n[ochrany]|n[orionu]|n[oslabení]|n[otevřenýchran]|n[pahorků]|n[pekla]c[#E303E0]|n[píle]|n[pohotovosti]|n[pomsty]|n[potupy]|n[preciznosti]|n[prohry]|n[procházky]|n[prokletí]|n[protiútoku]|n[prudkosti]|n[pýchy]|n[rezivění]|n[rovnováhy]|n[rozdělení]|n[rozkoše]c[#E303E0]|n[rozmaru]|n[rozpaků]|n[rozpínavosti]|n[rozptýlení]|n[rychlosti]|n[sebedůvěry]|n[sebeovládání]|n[síly]|n[slávy]|n[slunce]|n[smrti]c[#E303E0]|n[sňatku]|n[soupeření]|n[spěchu]|n[spravedlnosti]|n[starobylosti]|n[stětí]|n[strachu]|n[světla]|n[svobody]|n[šílenství]|n[štědrosti]|n[tavení]|n[teroru]|n[ticha]|n[truchlení]|n[trumfu]|n[učňů]|n[uhranutí]|n[úlomků]|n[úspěchu]|n[ústupu]|n[utrpení]|n[vášně]|n[vědomosti]|n[velkoleposti]|n[víry]|n[volání]|n[vraždy]|n[vyčerpání]|n[výdrže]|n[vyhlazení]|n[výstrahy]|n[vytrvalosti]|n[výtržností]|n[zábrany]|n[zadostiučinění]|n[zakletí]|n[záře]|n[zdatnosti]|n[zdraví]|n[zkázy]|n[zloby]|n[zmatení]|n[života]|';
		var foodList = 'n[Jablko]|n[Banány]|n[Chléb]|n[Chlebové závitky]|n[Sýr]|n[Kuře]|n[Ryba]|n[Léčivý lektvar]|n[Kýta]|n[Biftek]';
		var tempImpList = 'n[Lektvar síly]c[blue]|n[Lektvar dovednosti]c[yellow]|n[Lektvar obratnosti]c[green]|n[Lektvar odolnosti]c[orange]|n[Lektvar charismatu]c[purple]|n[Lektvar inteligence]c[red]|n[Hloh]|n[Kořen tajgy]';
		var impList = 'n[modrý prach]c[blue]|n[čistící houba]|n[zelený prach]c[green]|n[Brousek]|n[oranžový prach]c[orange]|n[Ochranné vybavení]|n[rudý prach]c[red]|n[fialový prach]c[purple]|n[žlutý prach]c[yellow]';
	}
	else if(GCAO_lang=='bg'){
		var prefixList = 'n[Адендатиели]|n[Амелиани]|n[Амовиели]|n[Anchorons]|n[Appius]|n[Асаисети]|n[Асендаки]|n[Ashitills]|n[Бациай]|n[Barbekuus]|n[Beasthammers]|n[Берии]|n[Билги]|n[Calódiens]c[#0D960D]|n[Чабдини]|n[Чалини]|n[Чеалоти]|n[Cheggovs]|n[Chucks]|n[Циалани]|n[Цисиени]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Доитреми]|n[Doomeniks]|n[Елраранги]|n[Елвилмандели]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Фрабоси]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Гадриевени]|n[Gaius]c[#E303E0]|n[Галаранди]|n[Гидрас]|n[Гонаки]|n[Гранки]|n[Grasscrawlers]|n[Хеудоис]|n[Хеухоис]|n[Ибивани]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Керани]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Лотаини]|n[Lucius]c[#E303E0]|n[Лулус]|n[Лурчарас]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Мимас]|n[Monychustas]|n[Mooncruchers]|n[Нарити]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Перагоси]|n[Phalangens]|n[Поирини]|n[Purmanns]|n[Rakrests]|n[Райоли]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Сугоси]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Юридос]|n[Uróthiens]|n[Вутиели]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Зеиндраи]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Зомберс]';
		var suffixList = 'n[Hell]|n[Paradise]';
		var foodList = 'n[Ябълка]|n[Банани]|n[Хляб]|n[Франзела]|n[Сирене]|n[Пиле]|n[Риба]|n[Елексир за здраве]|n[Бут месо]|n[Бифтек]';
		var tempImpList = 'n[Колба за сила]c[син]|n[Колба за схватливост]c[жълт]|n[Колба за умение]c[зелен]|n[Колба за физика]c[оранжев]|n[Колба за чар]c[лилав]|n[Колба за интелект]c[червен]|n[Howthorn]|n[Taigaroot]';
		var impList = 'n[Blue powder]c[blue]|n[Detergent sponge]|n[Green powder]c[green]|n[Grindstone]|n[Orange powder]c[orange]|n[Protective gear]|n[Red powder]c[red]|n[Violet powder]c[purple]|n[Yellow powder]c[yellow]';
	}
	else if(GCAO_lang=='ru'){
		var prefixList = 'n[Адендатиэлс]|n[Амелиас]|n[Amoviels]|n[Ахоронс]|n[Аппиус]|n[Асейсетс]|n[Асендакс]|n[Аштилс]|n[Бакиас]|n[Барбеккус]|n[Зверь]|n[Беррис]|n[Билгс]|n[КелКдиенс]c[#0D960D]|n[Чабдинс]|n[Чалинис]|n[Чеалотс]|n[Чегговс]|n[Чакс]|n[Киалланс]|n[Кисиенс]|n[Dairus]|n[Децимус]|n[Denovs]|n[Dexterus]|n[Дойтренс]|n[Doomeniks]|n[Элрарангс]|n[Elvilmandels]|n[Эливенс]|n[Эвотаос]|n[Фернабастас]|n[Фитшис]|n[Фрабос]|n[Фрикойс]|n[Frientas]|n[Фёстрельс]|n[Гадриэвинс]|n[Гаиус]c[#E303E0]|n[Галарандс]|n[Гидрас]|n[Гонакс]|n[Гранкс]|n[Пресмыкающиеся]|n[Хеудойс]|n[Хеухойс]|n[Айбивэнс]|n[Ихорус]c[#E303E0]|n[Измаилс]|n[Исунделс]|n[Дженниферс]|n[Кедиссис]|n[Керраннас]|n[Коркс]|n[Космонэс]|n[Линдроминус]|n[Лилоельс]|n[Лотаис]|n[Люциус]c[#E303E0]|n[Лулус]|n[Луртсхарас]|n[Mandalus]|n[Маниус]|n[Маркус]|n[Матеус]c[#E303E0]|n[Медонис]|n[Melanchaetas]|n[Меланеос]|n[Мермериус]|n[Мимас]|n[Monychustas]|n[Mooncruchers]|n[Наритс]|n[Опиэнцас]c[#E303E0]|n[Орлельдс]|n[Перагос]|n[Фалангенс]|n[Пойринс]|n[Пурманнс]|n[Ракрестс]|n[Рэйолс]|n[Редос]|n[Рейнкс]|n[Роналдас]|n[Rynightes]|n[Сентарионс]|n[Servius]|n[Секстус]|n[Шивас]|n[Скитерус]|n[Солитанис]|n[Сфингенс]|n[Спуриус]|n[Стобаерс]|n[Сугос]|n[Тилитс]c[#0046FF]|n[Таниас]|n[Тантус]c[#E303E0]|n[Тортстенс]|n[Тинотиэлс]|n[Титус]|n[Трафанс]c[#0046FF5)]|n[Тёнисес]|n[Умброс]|n[Умфетас]|n[Умилавенс]|n[Уридос]|n[УрКтиенс]|n[Вутиэлс]|n[Ватэманнс]|n[Xenphlames]|n[Xus]|n[Yas]|n[Зейндрас]c[#0D960D]|n[Zickezackes]|n[Зимбрис]|n[Зомберис]';
		var suffixList = 'n[Hell]|n[Paradise]';
		var foodList = 'n[Яблоко]|n[Бананы]|n[Хлеб]|n[Булочка]|n[Сыр]|n[Цыпленок]|n[Рыба]|n[Целительное зелье]|n[Вырезка]|n[Стейк]';
		var tempImpList = 'n[Бутылки силы]c[Синий]|n[Бутылки сообразительности]c[желтый]|n[Бутылки ловкости]c[Зеленый]|n[Бутылки выносливости]c[Оранжевый]|n[Бутылки харизмы]c[Фиолетовый]|n[Бутылки интеллекта]c[Красный]|n[Боярышник]|n[Таежный корень]';
		var impList = 'n[Синий порошок]c[Синий]|n[Чистящая губка]|n[Зеленый порошок]c[Зеленый]|n[Жернов]|n[Оранжевый порошок]c[Оранжевый]|n[Защитное снаряжение]|n[Красный порошок]c[Красный]|n[Фиолетовый порошок]c[Фиолетовый]|n[Желтый порошок]c[Желтый]';
	}
	else if(GCAO_lang=='ee'){
		var prefixList = 'n[Adendathieli]|n[Amelia]|n[Amovieli]|n[Anchoroni]|n[Appiuse]|n[Asaysethi]|n[Asendaci]|n[Ashitilli]|n[Bacia]|n[Barbekuusi]|n[Deemonitapja]|n[Berry]|n[Bilgi]|n[Calodieni]c[#0D960D]|n[Chabdyni]|n[Chalini]|n[Chealothi]|n[Cheggovi]|n[Chucki]|n[Ciallani]|n[Cisieni]|n[Dairuse]|n[Decimuse]|n[Denovi]|n[Dexteruse]|n[Doitremi]|n[Doomeniki]|n[Elrarangi]|n[Elvilmandeli]|n[Elyweni]|n[Evatovi]|n[Fernabasti]|n[Fitschis]|n[Frabose]|n[Frickoy]|n[Frienta]|n[Fustrieli]|n[Gadrieweni]|n[Gaiuse]c[#E303E0]|n[Galarandi]|n[Gidra]|n[Gonaki]|n[Granki]|n[Roomaja]|n[Heudoi]|n[Heuhoi]|n[Ibiwani]|n[Ichoruse]c[#E303E0]|n[Ismaeli]|n[Isundeli]|n[Jenniferi]|n[Kedyssise]|n[Kerrana]|n[Korksi]|n[Kosmonase]|n[Leandronimuse]|n[Liloelsi]|n[Lothay]|n[Luciuse]c[#E303E0]|n[Lulu]|n[Lurtschara]|n[Mandaluse]|n[Maniuse]|n[Marcuse]|n[Mateuse]c[#E303E0]|n[Medonise]|n[Melanchaetase]|n[Melaneose]|n[Mermereuse]|n[Mimase]|n[Monychusta]|n[Kuu Purustaja]|n[Narithi]|n[Opiehnza]c[#E303E0]|n[Orleldi]|n[Peragose]|n[Phalangeni]|n[Poirini]|n[Purmanni]|n[Rakresti]|n[Rayoli]|n[Redose]|n[Reinkese]|n[Ronalda]|n[Rynighti]|n[Sentarioni]|n[Serviuse]|n[Sextuse]|n[Shiva]|n[Skiteruse]|n[Solitanise]|n[Sphingensi]|n[Spuriuse]|n[Stoybaeri]|n[Sugose]|n[Talithi]c[#0046FF]|n[Tania]|n[Tantuse]c[#E303E0]|n[Thorsteni]|n[Tinothieli]|n[Tituse]|n[Trafani]c[#0046FF5)]|n[Tûnêséi]|n[Umbro]|n[Umfeta]|n[Umilaweni]|n[Urido]|n[Urothieni]|n[Vuthieli]|n[Watzmanni]|n[Xenphalmesi]|n[Xuse]|n[Yasi]|n[Zeindra]c[#0D960D]|n[Zickezacki]|n[Zimbri]|n[Zombersi]';
		var suffixList = 'n[Põrgu]|n[Paradiisi]';
		var foodList = 'n[Õun]|n[Banaan]|n[Leib]|n[Liharull]|n[Juust]|n[Chicken]|n[Kala]|n[Ravim]|n[Lihakints]|n[Lihalõik]';
		var tempImpList = 'n[Jõu pudel]c[blue]|n[Võimekuse pudel]c[yellow]|n[Väleduse pudel]c[green]|n[Ülesehituse pudel]c[orange]|n[Karisma pudel]c[purple]|n[Intelligentsuse pudel]c[red]|n[Viirpuu]|n[Taigajuur]';
		var impList = 'n[Sinine pulber]c[blue]|n[Puhastav käsn]|n[Roheline pulber]c[green]|n[Käiakivi]|n[Oranž pulber]c[orange]|n[Kaitsevarustus]|n[Punane pulber]c[red]|n[Violetne pulber]c[purple]|n[Kollane pulber]c[yellow]';
	}
	else if(GCAO_lang=='es'){
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[de la presteza]|n[del brillo]|n[del miedo]|n[de la gloria]|n[de gracia]|n[de la rapidez]|n[de la normalidad]|n[de la colina]|n[del mar]|n[de la delicadeza]|n[del cielo]|n[del sufrimiento]|n[del dolor]|n[del infierno]|n[de la utilidad]';
		var foodList = 'n[Manzana]|n[Bananas]|n[Queso]|n[Rollos de pan]|n[Pescado]|n[Pan]|n[Pedazo de carne]|n[Bife]|n[Pollo]|n[Poción de salud]n[Torta]';
		var tempImpList = 'n[Frasco de fuerza]c[blue]|n[Frasco de la aptitud]c[yellow]|n[Frasco de la agilidad]c[green]|n[Frasco de la constitución]c[orange]|n[Frasco de carisma]c[purple]|n[Frasco de inteligencia]c[red]|n[Espino]|n[Raíz de taiga]|n[Hojas de Ginkgo]';
		var impList = 'n[Esponja de detergente]n[Polvos azules]c[blue]||n[Polvos verdes]c[green]|n[Piedra de amolar]|n[Polvos naranja]c[orange]|n[Equipo protector]|n[Polvora Roja]c[red]|n[Polvos violetas]c[purple]|n[Polvos amarillos]c[yellow]';
	}
	else{
		var prefixList = 'n[Adendathiels]|n[Amelias]|n[Amoviels]|n[Anchorons]|n[Appius]|n[Asayseths]|n[Asendacs]|n[Ashitills]|n[Bacias]|n[Barbekuus]|n[Beasthammers]|n[Berrys]|n[Bilgs]|n[Calódiens]c[#0D960D]|n[Chabdyns]|n[Chalinis]|n[Chealoths]|n[Cheggovs]|n[Chucks]|n[Ciallans]|n[Cisiens]|n[Dairus]|n[Decimus]|n[Denovs]|n[Dexterus]|n[Doitrems]|n[Doomeniks]|n[Elrarangs]|n[Elvilmandels]|n[Elywens]|n[Evotavs]|n[Fernabasts]|n[Fitschis]|n[Frabos]|n[Frickoys]|n[Frientas]|n[Fustriels]|n[Gadriewens]|n[Gaius]c[#E303E0]|n[Galarands]|n[Gidras]|n[Gonaks]|n[Granks]|n[Grasscrawlers]|n[Heudois]|n[Heuhois]|n[Ibiwans]|n[Ichorus]c[#E303E0]|n[Ismaels]|n[Isundels]|n[Jennifers]|n[Kedyssis]|n[Kerrannas]|n[Korks]|n[Kosmonas]|n[Leandronimus]|n[Liloels]|n[Lothays]|n[Lucius]c[#E303E0]|n[Lulus]|n[Lurtscharas]|n[Mandalus]|n[Manius]|n[Marcus]|n[Mateus]c[#E303E0]|n[Medonis]|n[Melanchaetas]|n[Melaneos]|n[Mermereus]|n[Mimas]|n[Monychustas]|n[Mooncruchers]|n[Nariths]|n[Opiehnzas]c[#E303E0]|n[Orlelds]|n[Peragos]|n[Phalangens]|n[Poirins]|n[Purmanns]|n[Rakrests]|n[Rayols]|n[Redos]|n[Reinkes]|n[Ronaldas]|n[Rynightes]|n[Sentarions]|n[Servius]|n[Sextus]|n[Shivas]|n[Skiterus]|n[Solitanis]|n[Sphingens]|n[Spurius]|n[Stoybaers]|n[Sugos]|n[Táliths]c[#0046FF]|n[Tanias]|n[Tantus]c[#E303E0]|n[Thorstens]|n[Tinothiels]|n[Titus]|n[Trafans]c[#0046FF5)]|n[Tûnêsés]|n[Umbros]|n[Umfetas]|n[Umilawens]|n[Uridos]|n[Uróthiens]|n[Vuthiels]|n[Watzmanns]|n[Xenphlames]|n[Xus]|n[Yas]|n[Zeindras]c[#0D960D]|n[Zickezackes]|n[Zimbris]|n[Zombers]';
		var suffixList = 'n[No translation available]v[ ]';
		var foodList = 'n[No translation available]v[ ]';
		var tempImpList = 'n[No translation available]v[ ]';
		var impList = 'n[No translation available]v[ ]';
	}
	
	if(document.getElementById('auction_filter')){
		if(!document.location.href.match('ttype=3')){
			var L_food=document.getElementById('auction_filter').getElementsByTagName('tr')[2].getElementsByTagName('option')[9].innerHTML;
			var L_upgrades=document.getElementById('auction_filter').getElementsByTagName('tr')[2].getElementsByTagName('option')[10].innerHTML;
			var L_enisxisis=document.getElementById('auction_filter').getElementsByTagName('tr')[2].getElementsByTagName('option')[11].innerHTML;
		}
		var L_search=document.getElementById('auction_filter').getElementsByTagName('input')[1].value;
	}
	var L_selectEnixsiseis=L_select+' '+L_enisxisis;
	var L_selectUpgrades=L_select+' '+L_upgrades;
	var L_selectFood=L_select+' '+L_food;
	
	if(document.getElementById('auction_filter') || document.getElementById('market_item_table')){
		if(GCAO_mod=='auction'){ //auction
			var itemType = Number(document.getElementById('auction_filter').getElementsByTagName('select')[1].innerHTML.match(/option value="(\d+)" selected="selected"/i)[1]);
			document.getElementById('auction_filter').getElementsByTagName('input')[1].setAttribute('id', "submitButton");
			var submitButton = document.getElementById('submitButton');
			var clearButton = '<div id="Clear" style="background-image: url(' + img_clear + ');background-position: 0px 0px;position:absolute;margin-top:-22px;margin-'+GCAO_left+':208px;width:22px;height:22px;" onmouseover="document.getElementById(\'Clear\').setAttribute(\'style\',\'background-image: url(' + img_clear + ');background-position: 22px 0px;position:absolute;margin-top:-22px;margin-'+GCAO_left+':208px;width:22px;height:22px;\')" onmouseout="document.getElementById(\'Clear\').setAttribute(\'style\',\'background-image: url(' + img_clear + ');background-position: 0px 0px;position:absolute;margin-top:-22px;margin-'+GCAO_left+':208px;width:22px;height:22px;\')" onclick="document.getElementById(\'auction_filter\').getElementsByTagName(\'input\')[0].value=\'\'" title="Clear"></div>';
			document.getElementById('auction_filter').getElementsByTagName('tr')[0].getElementsByTagName('td')[1].innerHTML += clearButton;

			displayWarnGuildShorAuctionButton();

			if(itemType <= 6 || itemType == 8 || itemType == 9){ //all, weapons, shields, armors, helmets, gloves, boots, rings, amulets
				//prefixes
				createElemenWithID("tr","prefix_search",document.getElementById('auction_filter').getElementsByTagName('tr')[1]);
				document.getElementById('prefix_search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_Items+':</td><td style="width: 50%;"><select id="SelectPrefix" name="SelectPrefix"><option value="SP">- '+L_selectItem+' -</option>\n' + makeOpitonsFromItemList(prefixList) + '</select></td>';
				//suffixes
				createElemenWithID("tr","suffix_search",document.getElementById('auction_filter').getElementsByTagName('tr')[2]);
				document.getElementById('suffix_search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_Type+':</td><td style="width: 50%;"><select id="SelectSuffix" name="SelectSuffix">\n<option value="SS">- '+L_selectType+' -</option>\n' + makeOpitonsFromItemList(suffixList) + '</select></td>';
				
				//Gold Limit Filter
				createElemenWithID("script","goldLimitFunction",document.getElementById('auction_filter'));
				document.getElementById('goldLimitFunction').setAttribute('type', 'text/javascript');
				document.getElementById('goldLimitFunction').innerHTML = "\n"+'function filterItemsByGold(requiredGold){'+"\n"+
				'var itemNum=document.forms.length-1;'+"\n"+
				'var i=1;'+"\n"+
				'var itemsCount=0;'+"\n"+
				'var Gold="";'+"\n"+
				'while(i<=itemNum && i<501){'+"\n"+
				'	if(document.getElementById("GoldFilterResult").style.display = "block"){'+"\n"+
				'		document.getElementById("auction_table").getElementsByTagName("td")[i-1].setAttribute("style","opacity:1;");'+"\n"+
				'	}'+"\n"+
				'	Gold=document.getElementById("auction_table").getElementsByTagName("td")[i-1].getElementsByTagName("div")[7].innerHTML.replace(/\\./gi,"");'+"\n"+
				'	if(Gold.match(/: (\\d+)&nbsp;/i)){'+"\n"+
				'		Gold=Gold.match(/: (\\d+)&nbsp;/i)[1]*1;'+"\n"+
				'	}else{'+"\n"+
				'		Gold=0;'+"\n"+
				'	}'+"\n"+
				'	if(Gold>requiredGold){'+"\n"+
				'		document.getElementById("auction_table").getElementsByTagName("td")[i-1].setAttribute("style","opacity:0.5;");'+"\n"+
				'		itemsCount++;'+"\n"+
				'	}'+"\n"+
				'	i++;'+"\n"+
				'}'+"\n"+
				'itemsCount=i-itemsCount-1;'+"\n"+
				'document.getElementById("GoldFilterResult").innerHTML = "'+L_itemsFound+': <b>"+itemsCount+"</b>";'+"\n"+
				'document.getElementById("GoldFilterResult").style.display = "block";'+"\n"+
				'}'+"\n";
				//Gold limit
				createElemenWithID("tr","Item_Gold_Search",document.getElementById('auction_filter').getElementsByTagName('tr')[6]);
				document.getElementById('Item_Gold_Search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_GoldLimit+':</td><td style="width: 50%;"><input type="int" name="SelectGold" id="SelectGold" value="∞" maxlength="8" size="7"><input style="margin-'+GCAO_left+':5px;" onclick="filterItemsByGold(document.getElementById(\'SelectGold\').value)" value="'+L_search+'" class="button3" type="button"><div id="GoldFilterResult" class="title_box" style="display:none"></div></td>';
				
				if(itemType == 1){ //weapons
					// minimal damage filter script
					createElemenWithID("script","damageFunction",document.getElementById('auction_filter'));
					document.getElementById('damageFunction').setAttribute('type', 'text/javascript');
					document.getElementById('damageFunction').innerHTML = "\n"+'function filterItemsByDamage(requiredDamage){'+"\n"+
					'var itemNum=document.forms.length-1;'+"\n"+
					'var i=1;'+"\n"+
					'var itemsCount=0;'+"\n"+
					'var damage="";'+"\n"+
					'while(i<=itemNum && i<501){'+"\n"+
					'	if(document.getElementById("damageFilterResult").style.display = "block"){'+"\n"+
					'		document.getElementById("auction_table").getElementsByTagName("td")[i-1].setAttribute("style","opacity:1;");'+"\n"+
					'	}'+"\n"+
					'	damage=document.getElementById("auction_table").getElementsByTagName("td")[i-1].getElementsByTagName("div")[4].getAttribute("onmouseover");'+"\n"+
					'	damage=damage.match(/ (\\d+) - (\\d+)<\\/td>/i)[2]*1;'+"\n"+
					'	if(damage<requiredDamage){'+"\n"+
					'		document.getElementById("auction_table").getElementsByTagName("td")[i-1].setAttribute("style","opacity:0.5;");'+"\n"+
					'		itemsCount++;'+"\n"+
					'	}'+"\n"+
					'	i++;'+"\n"+
					'}'+"\n"+
					'itemsCount=i-itemsCount-1;'+"\n"+
					'document.getElementById("damageFilterResult").innerHTML = "'+L_weaponsFound+': <b>"+itemsCount+"</b>";'+"\n"+
					'document.getElementById("damageFilterResult").style.display = "block";'+"\n"+
					'}'+"\n";
					
					// minimal damage filter
					createElemenWithID("tr","Item_Damage_Search",document.getElementById('auction_filter').getElementsByTagName('tr')[3]);
 					document.getElementById('Item_Damage_Search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_minDamage+':</td><td style="width: 50%;"><input type="int" name="SelectDamage" id="SelectDamage" value="0" maxlength="5" size="3"><input style="margin-'+GCAO_left+':5px;" onclick="filterItemsByDamage(document.getElementById(\'SelectDamage\').value)" value="'+L_search+'" class="button3" type="button"><div id="damageFilterResult" class="title_box" style="display:none"></div></td>';
				}
				submitButton.setAttribute('onclick',"if(document.getElementById('SelectPrefix').value!='SP'){document.getElementById('auction_filter').getElementsByTagName('input')[0].value=document.getElementById('SelectPrefix').value;}if(document.getElementById('SelectSuffix').value!='SS' && document.getElementById('SelectPrefix').value!='SP'){document.getElementById('auction_filter').getElementsByTagName('input')[0].value+= ' '+document.getElementById('SelectSuffix').value;}else if(document.getElementById('SelectSuffix').value!='SS'){document.getElementById('auction_filter').getElementsByTagName('input')[0].value=document.getElementById('SelectSuffix').value;}");
			}else if(itemType == 7){ //food
				createElemenWithID("tr","Food_Search",document.getElementById('auction_filter').getElementsByTagName('tr')[1]);
				document.getElementById('Food_Search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_food+':</td><td style="width: 50%;"><select id="SelectFood" name="SelectFood">\n<option value="SF">- '+L_selectFood+' -</option>\n' + makeOpitonsFromItemList(foodList) + '</select></td>';
				submitButton.setAttribute('onclick',"if(document.getElementById('SelectFood').value!='SF'){document.getElementById('auction_filter').getElementsByTagName('input')[0].value=document.getElementById('SelectFood').value;}");
			}else if(itemType==11 || itemType==12){ //temporary improvements && improvements
				createElemenWithID("script","plusFunction",document.getElementById('auction_filter'));
				document.getElementById('plusFunction').setAttribute('type', 'text/javascript');
				document.getElementById('plusFunction').innerHTML = "\n"+'function filterItemsByPlus(requiredPlus){'+"\n"+
				'var itemNum=document.forms.length-1;'+"\n"+
				'var i=1;'+"\n"+
				'var itemsCount=0;'+"\n"+
				'var plus="";'+"\n"+
				'while(i<=itemNum && i<501){'+"\n"+
				'	if(document.getElementById("plusFilterResult").style.display = "block"){'+"\n"+
				'		document.getElementById("auction_table").getElementsByTagName("td")[i-1].setAttribute("style","opacity:1;");'+"\n"+
				'	}'+"\n"+
				'	plus=document.getElementById("auction_table").getElementsByTagName("td")[i-1].getElementsByTagName("div")[4].getAttribute("onmouseover");'+"\n"+
				'	if(plus.match(/: \\+(\\d+)/i)){'+"\n"+
				'		plus=plus.match(/: \\+(\\d+)/i)[1]*1;'+"\n"+
				'	}else{'+"\n"+
				'		plus=0;'+"\n"+
				'	}'+"\n"+
				'	if(plus<requiredPlus){'+"\n"+
				'		document.getElementById("auction_table").getElementsByTagName("td")[i-1].setAttribute("style","opacity:0.5;");'+"\n"+
				'		itemsCount++;'+"\n"+
				'	}'+"\n"+
				'	i++;'+"\n"+
				'}'+"\n"+
				'itemsCount=i-itemsCount-1;'+"\n"+
				'document.getElementById("plusFilterResult").innerHTML = "'+L_improvementsFound+': <b>"+itemsCount+"</b>";'+"\n"+
				'document.getElementById("plusFilterResult").style.display = "block";'+"\n"+
				'}'+"\n";
				//+?
				createElemenWithID("tr","Item_Plus_Search",document.getElementById('auction_filter').getElementsByTagName('tr')[3]);
				document.getElementById('Item_Plus_Search').innerHTML = '<td style="width: 50%; text-align: center;">+???:</td><td style="width: 50%;"><input type="int" name="SelectPlus" id="SelectPlus" value="0" maxlength="5" size="3"><input style="margin-'+GCAO_left+':5px;" onclick="filterItemsByPlus(document.getElementById(\'SelectPlus\').value)" value="'+L_search+'" class="button3" type="button"><div id="plusFilterResult" class="title_box" style="display:none"></div></td>';
				if(itemType==11){ //temporary improvements
					createElemenWithID("tr","TempImp_Search",document.getElementById('auction_filter').getElementsByTagName('tr')[1]);
					document.getElementById('TempImp_Search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_upgrades+':</td><td style="width: 50%;"><select id="SelectTempImp" name="SelectTempImp">\n<option value="STI">- '+L_selectUpgrades+' -</option>\n' + makeOpitonsFromItemList(tempImpList) + '</select></td>';
					submitButton.setAttribute('onclick',"if(document.getElementById('SelectTempImp').value!='STI'){document.getElementById('auction_filter').getElementsByTagName('input')[0].value=document.getElementById('SelectTempImp').value;}");
				}else{//improvements
					createElemenWithID("tr","Imp_Search",document.getElementById('auction_filter').getElementsByTagName('tr')[1]);
					document.getElementById('Imp_Search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_enisxisis+':</td><td style="width: 50%;"><select id="SelectImp" name="SelectImp">\n<option value="SI">- '+L_selectEnixsiseis+' -</option>\n' + makeOpitonsFromItemList(impList) + '</select></td>';
					submitButton.setAttribute('onclick',"if(document.getElementById('SelectImp').value!='SI'){document.getElementById('auction_filter').getElementsByTagName('input')[0].value=document.getElementById('SelectImp').value;}");
				}
			}else if(itemType == 15){ //mercenaries
				//todo filter by values
			}
		}else if(GCAO_mod=='market'){ //market
			var clearButton = '<div id="Clear" style="background-image: url(' + img_clear + ');background-position: 0px 0px;position:absolute;margin-top:-22px;margin-'+GCAO_left+':208px;width:22px;height:22px;" onmouseover="document.getElementById(\'Clear\').setAttribute(\'style\',\'background-image: url(' + img_clear + ');background-position: 22px 0px;position:absolute;margin-top:-22px;margin-'+GCAO_left+':208px;width:22px;height:22px;\')" onmouseout="document.getElementById(\'Clear\').setAttribute(\'style\',\'background-image: url(' + img_clear + ');background-position: 0px 0px;position:absolute;margin-top:-22px;margin-'+GCAO_left+':208px;width:22px;height:22px;\')" onclick="document.getElementById(\'content\').getElementsByTagName(\'input\')[6].value=\'\'" title="Clear"></div>';
			document.getElementById('content').getElementsByTagName('tr')[8].getElementsByTagName('td')[1].innerHTML += clearButton;
			createElemenWithID("tr","Item_Name_Search",document.getElementById('content').getElementsByTagName('tr')[9]);
			document.getElementById('Item_Name_Search').innerHTML = '<td style="width: 50%; text-align: center;">'+L_Items+':</td><td style="width: 50%;">\n<select id="SelectItem" name="SelectItem"><option value="SI">- '+L_selectItem+' -</option>\n' + makeOpitonsFromItemList(prefixList) + '</select></td>';
			document.getElementById('content').getElementsByTagName('input')[6].setAttribute('onclick',"if(document.getElementById('SelectItem').value!='SI'){document.getElementById('content').getElementsByTagName('input')[5].value=document.getElementById('SelectItem').value;}")
		}
	}
}

// name: makeOpitonsFromItemList(OptionList)
// @param string with options "n[name]v[value]c[color]|n[name1]v[value1]c[color1]..." v[value] and c[color] are optional
// @return string with option html tags
function makeOpitonsFromItemList(OptionList){
    var options = OptionList.split("|");
    var nameRegExp = /n\[(.+?)\]/i;
    var valueRegExp = /v\[(.+?)\]/i;
    var colorRegExp = /c\[(.+?)\]/i;
    var name = ""; var value = ""; var color = ""; var htmlOptionList = "";
    for (i in options){
        name  = (nameRegExp.test(options[i]))  ? options[i].match(nameRegExp)[1]  : "Option not found";
        value = (valueRegExp.test(options[i])) ? options[i].match(valueRegExp)[1] : name;
        color = (colorRegExp.test(options[i])) ? options[i].match(colorRegExp)[1] : "";
        shadow = (colorRegExp.test(options[i])) ? 'text-shadow: 0pt 0pt 2px '+options[i].match(colorRegExp)[1]+';' : "";
		if(color=='yellow'){color='#BFAF00';}else if(color=='orange'){color='#FF7F00';}
        htmlOptionList += '<option value="' + value + '" style="color: ' + color + '; ' + shadow + '">' + name + '</option>\n';
    }
    return htmlOptionList;
}

function createElemenWithID(element,id,location){
    var option = document.createElement(element);
    option.setAttribute('id', id);
    if(location){location.parentNode.insertBefore(option, location);}
}

function displayWarnGuildShorAuctionButton(){
	var time= document.getElementById('header_game').getElementsByTagName('span')[6].innerHTML.match(/(\d+:\d+)/i)[1];
	var L_Auction = document.getElementById('sidebar_inner').innerHTML.match('class="submenuitem_aktive" target="_self">([^<]+)</a>')[1];
	if(document.getElementById('mainnav').innerHTML.match('current" style="cursor:pointer;">([^<]+)</a>')){
		var L_AuctionType=document.getElementById('mainnav').innerHTML.match('current" style="cursor:pointer;">([^<]+)</a>')[1];
    }else{
		var L_AuctionType="Type of auction was not found";
    }
	var L_veryShort=document.getElementById('content').getElementsByTagName('p')[2].innerHTML.match(/class="description_span_right"><b>(.+?)<\/b><\/span>/i)[1];
	var message='['+time+'] '+L_Auction+' ('+L_AuctionType+') : '+L_veryShort;

	//if ((document.getElementById('content').getElementsByTagName('p')[2].innerHTML.match(/class="description_span_right"><b>(.+?)<\/b><\/span>/i)[1])==L_veryShort){
		createElemenWithID("div","warn_guild_div",document.getElementById('content').getElementsByTagName('p')[2]);
		if(GCAO_left=='left'){
			var temp='left:24';
		}else{
			var temp='right:347';
		}
		document.getElementById('warn_guild_div').setAttribute('style','position:absolute;margin-'+temp+'px;margin-top:-5px;');
		document.getElementById('warn_guild_div').innerHTML = '<input id="announButton" value="'+L_anunGuild+'" class="button1" type="submit" name="sendmails" /><span id="messageText" style="display:none;">'+message+'</span>';
		document.getElementById("announButton").addEventListener("click", sentAuctionGuildMessage, false);
	//}
}

function sentAuctionGuildMessage(){
	var disat=document.getElementById('qsmg').style.display;
	
	if(document.getElementById('SentReportMessage')){
		var message=document.getElementById('SentReportMessage').innerHTML;
		var no=0;
	}else if(GCAO_mod=='auction' && disat=='none'){
		var message=document.getElementById('messageText').innerHTML;
		var no=1;
	}else{
		var message=document.getElementById('messageText2').value.replace(/&/gi,'%26');
		var no=2;
	}
	if(Get_Cookie("GCAOguildMates")){
        var temp = Get_Cookie("GCAOguildMates").split("#");
        var mate = new Array();
        var code = "";
        for(var i=1; i < temp.length; i++){
            mate = temp[i].split("<");
            code += '&qq'+mate[1]+'='+mate[1];
        }
		code+= '&mailText='+message+'&sendmails=Î£ÏÎµÎ¯Î»Îµ';
		GM_xmlhttpRequest({
			method: "POST",
			url: GCAO_siteurl+'mod=guild&submod=adminMail&sh='+GCAO_secureCode,
			headers: {
			'Host': GCAO_siteurl.replace('http://','').replace('/game/index.php?',''),
			'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; el; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
			'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
			'Accept-Language': 'el-gr,el;q=0.8,en-us;q=0.5,en;q=0.3',
			'Accept-Encoding': 'gzip,deflate',
			'Accept-Charset': 'ISO-8859-7,utf-8;q=0.7,*;q=0.7',
			'Keep-Alive': '115',
			'Connection': 'keep-alive',
			'Referer': GCAO_siteurl.replace('game/index.php?',''),
			'Content-Type': 'application/x-www-form-urlencoded'
			},
			data : code,
			onload: function(response){
				if(no==0){
					document.getElementById('SentReportMessage').setAttribute('id','MessageSend');
					document.getElementById('reportToGuildTheFight').value=L_MessageWasSent;
				}else if(no==1){
					document.getElementById('announButton').value=L_MessageWasSent;
				}else{
					document.getElementById('sentqmButton').value=L_MessageWasSent;
				}
			}
		});
	}else if(confirm(L_visiteYourGuildsMemberPage)){
		document.location.href=GCAO_siteurl+'mod=guild&submod=memberList&sh='+GCAO_secureCode;
	}
}

//################################################################################################################################
//## CONNECTED GUILDMATES / ΣΥΝΔΕΔΕΜΕΝΟΙ ΠΑΙΧΤΕΣ ΤΑΓΜΑΤΟΣ
//################################################################################################################################
function  onlineGuildmates(){
	var img_online = '';
	var onlinePlayersDiv = document.createElement('div');
	onlinePlayersDiv.setAttribute('id', 'OnlinePlayers');
	if(navigator.userAgent.toLowerCase().match(/opera/i)){onlinePlayersDiv.setAttribute('style', 'margin-top:2px;');}
	onlinePlayersDiv.innerHTML = '<style type="text/css">a#wio{ cursor:pointer;display: block;width: 25px;height: 25px;background-repeat: no-repeat;}a.wio{background-image: url(' + img_online + '); background-position: -25px 0px; }a.wio:hover { background-image: url(' + img_online + '); background-position: 0px 0px; }</style>';
	onlinePlayersDiv.innerHTML += '<a id="wio" class="wio" title="'+L_OnlinePlayers+'" style="position:absolute;margin-top:96px;margin-'+GCAO_left+':687px;;width:25px;height:25px;z-index:501;"></a>'
	document.getElementById('header_game').appendChild(onlinePlayersDiv);
}

function ShowOnlineBox(){
	if(!document.getElementById('content2')){
		var content2 = document.createElement('div');
		content2.setAttribute('id', 'content2');
		if(navigator.userAgent.toLowerCase().match(/firefox/i)){content2.setAttribute('style','margin-top:20px;');}
		else{content2.setAttribute('style','position:absolute;margin-'+GCAO_left+':265px;');}
		content2.innerHTML = '<table><tr><td id="first_OnlineBox"></td></tr><tr><td id="second_OnlineBox"></td></tr></table>';
		document.getElementById('main_inner').appendChild(content2);
		GM_xmlhttpRequest({
			method: "GET",
			url: GCAO_siteurl + 'mod=guild&submod=memberList&order=o&sh=' + GCAO_secureCode,
			onload: function(response) {
				document.getElementById('content').style.display="none";
				var offlineP=response.responseText.match(/color:red;.font-weight:bold;/g).length;
				var numberP=response.responseText.match(/<a.href="index.php.mod=player/g).length-1;
				if(offlineP!=numberP){
					OnlineBox(response.responseText);
				}else{
					var noOne=document.createElement('div');
					noOne.setAttribute('id', 'OnlineList');
					noOne.setAttribute('style', "display:block;float:"+GCAO_right+";padding:5px 87px 0pt 23px;width:540px;");
					noOne.innerHTML="<div class=\"title_box\"><div class=\"title_inner\">"+L_guildPlayers+"<span onclick=\"document.getElementById('content2').style.display='none';document.getElementById('content').style.display = 'block';\" onmouseout=\"this.style.color='black';\" onmouseover=\"this.style.color='red';\" style=\"float:"+GCAO_right+";color:black;cursor:pointer;margin-"+GCAO_right+":5px;\" id=\"closeBox2\"><b>X</b></span></div></div><div class=\"title2_box\"><div class=\"title2_inner\">"+L_noOnlinePlayer+"</div></div>";
					document.getElementById('first_OnlineBox').appendChild(noOne);
				}
			}
		});
		GM_xmlhttpRequest({
		method: "GET",
		url: GCAO_siteurl + 'mod=overview&submod=buddylist&sh=' + GCAO_secureCode,
		onload: function(response) {
			document.getElementById('content').style.display="none";
			var offlineP=response.responseText.match(/color:red;.font-weight:bold;/g).length;
			var numberP=response.responseText.match(/<a.href="index.php.mod=player/g).length;
			if(offlineP!=numberP){
				OnlineFamilyBox(response.responseText);
			}else{
				var noOne=document.createElement('div');
				noOne.setAttribute('id', 'OnlineList2');
				noOne.setAttribute('style', "display: block; float: "+GCAO_right+"; padding: 5px 87px 0pt 23px; width: 540px;");
				noOne.innerHTML="<div class=\"title_box\"><div class=\"title_inner\">"+L_familyPlayers+"<span onclick=\"document.getElementById('content2').style.display='none';document.getElementById('content').style.display = 'block';\" onmouseout=\"this.style.color='black';\" onmouseover=\"this.style.color='red';\" style=\"float:"+GCAO_right+";color:black;cursor:pointer;margin-"+GCAO_right+":5px;\" id=\"closeBox2\"><b>X</b></span></div></div><div class=\"title2_box\"><div class=\"title2_inner\">"+L_noOnlinePlayer+"</div></div>";
				document.getElementById('second_OnlineBox').appendChild(noOne);
			}
		}
		});
	}
	else if(document.getElementById('content2').style.display=='none'){document.getElementById('content2').style.display='block';document.getElementById('content').style.display='none';}
	else{document.getElementById('content2').style.display='none';document.getElementById('content').style.display='block';}
}

function OnlineBox(text){
	var img_skull = '';
	var img_message = '%3D';
	var img_overview = '%3D';
	if(text.match('mainbox')){
		text = text.replace(/<script/ig,'<span').replace('mainbox', 'Omainbox');
		var onlineBox = document.createElement('div');
		onlineBox.setAttribute('style','display:none;float:'+GCAO_right+';padding:5px 87px 0pt 23px;width:540px;z-index:501;');
		onlineBox.setAttribute('id', 'OnlineList');
		onlineBox.innerHTML = text;
		document.getElementById('first_OnlineBox').appendChild(onlineBox);
		
		document.getElementById('OnlineList').innerHTML = document.getElementById('Omainbox').innerHTML;
		document.getElementById('OnlineList').getElementsByTagName('div')[1].innerHTML = L_guildPlayers+'<span id="closeBox" style="float:'+GCAO_right+';color:black;cursor:pointer;margin-'+GCAO_right+':5px;" onmouseover="this.style.color=\'red\';" onmouseout="this.style.color=\'black\';" onclick="document.getElementById(\'content2\').style.display=\'none\';document.getElementById(\'content\').style.display = \'block\';"><b>X</b></span>';
		document.getElementById('OnlineList').getElementsByTagName('tr')[0].setAttribute('style','display:none');
		document.getElementById('content').style.display = 'none';
		document.getElementById('OnlineList').style.display = 'block';
		
		var stop = false;
		var c = 1;
		var link='Error';
		var playersid='0';
		var messagelink='Error';
		while (stop==false){
			if(document.getElementById('OnlineList').getElementsByTagName('td')[(c-1)*5+1]){
				link = document.getElementById('OnlineList').getElementsByTagName('a')[c+1].getAttribute('href');
				if(link.match(/p\=(\d+)/i)){playersid = link.match(/p\=(\d+)/i)[1];}
				name = document.getElementById('OnlineList').getElementsByTagName('a')[c+1].innerHTML;
				messagelink = GCAO_siteurl + 'mod=messages&submod=messageNew&&profileName=' + name + '&sh=' + GCAO_secureCode;
				document.getElementById('OnlineList').getElementsByTagName('a')[c+1].removeAttribute('href');
				document.getElementById('OnlineList').getElementsByTagName('td')[(c-1)*5+1].setAttribute('width','25px');
				document.getElementById('OnlineList').getElementsByTagName('td')[(c-1)*5+1].innerHTML = '<center><img src="'+img_overview+'" onclick="window.location = \''+link+'\'" style="border:0px;width:20px;cursor:pointer;" title="Direct link"></center>';
				document.getElementById('OnlineList').getElementsByTagName('td')[(c-1)*5+2].setAttribute('width','25px');
				document.getElementById('OnlineList').getElementsByTagName('td')[(c-1)*5+2].innerHTML = '<center><img src="'+img_message+'" onclick="window.location = \''+messagelink+'\'" style="border:0px;width:20px;cursor:pointer;" title="'+L_sentMessage+'"></center>';
				document.getElementById('OnlineList').getElementsByTagName('td')[(c-1)*5+3].style.display = 'none';
				document.getElementById('OnlineList').getElementsByTagName('td')[(c-1)*5+4].setAttribute('width','80px');
			}
			if(document.getElementById('OnlineList').getElementsByTagName('tr')[c]){
				if(c==1||document.getElementById('OnlineList').getElementsByTagName('tr')[c].innerHTML.match('color:red;') || document.getElementById('OnlineList').getElementsByTagName('tr')[c].innerHTML.match('color: red;')){
					document.getElementById('OnlineList').getElementsByTagName('tr')[c].setAttribute('style','display:none');
				}
			}
			else{
				stop = true
				document.getElementById('OnlineList').getElementsByTagName('tr')[c-1].style.display = 'none';
				document.getElementById('OnlineList').getElementsByTagName('tr')[c-2].style.display = 'none';
			}
			c=c+1;
		}
	}
}

function OnlineFamilyBox(text){
	var img_skull = '';
	var img_message = '%3D';
	var img_overview = '%3D';
	
	text = text.replace(/<script/ig,'<span').replace('<div style="padding:20px">', '<div style="padding:20px" id="Omainbox2">');
	var onlineBox = document.createElement('div');
	onlineBox.setAttribute('style','display:;float:'+GCAO_right+';padding:5px 87px 0pt 23px;width:540px;z-index:501;');
	onlineBox.setAttribute('id', 'OnlineList2');
	onlineBox.innerHTML = text;
	document.getElementById('second_OnlineBox').appendChild(onlineBox);
	
	document.getElementById('OnlineList2').innerHTML="<div class=\"title_box\"><div class=\"title_inner\">"+L_familyPlayers+"<span onclick=\"document.getElementById('content2').style.display='none';document.getElementById('content').style.display = 'block';\" onmouseout=\"this.style.color='black';\" onmouseover=\"this.style.color='red';\" style=\"float:"+GCAO_right+";color:black;cursor:pointer;margin-"+GCAO_right+":5px;\" id=\"closeBox2\"><b>X</b></span></div></div><div class=\"title2_box\"><div class=\"title2_inner\">"+
	"<table width=\"100%\" id=\"familyOnlinePlayersList\">"+document.getElementById('Omainbox2').getElementsByTagName('td')[0].getElementsByTagName('table')[0].innerHTML+"</table></div></div>";
	var d = document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[0];
	d.parentNode.removeChild(d);
	
	var playersNum=document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr').length;
	var i=0;
	while(i<playersNum){
		if(document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[3].innerHTML.match(/off/i)){
			d = document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i];
			d.parentNode.removeChild(d);
			playersNum=playersNum-1;
		}else{i++;}
	}
	
	for(i=0;i<playersNum;i++){
		var d = document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[2];
		d.parentNode.removeChild(d);
		d = document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[3];
		d.parentNode.removeChild(d);
		
		var link=document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[0].getElementsByTagName('a')[0].href;
		var status=document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML;
		document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].setAttribute('width','25px');
		document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML='<center><img src="'+img_overview+'" onclick="window.location = \''+link+'\'" style="border:0px;width:20px;cursor:pointer;" title="Direct link"></center>';
		
		var name=document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[0].getElementsByTagName('a')[0].innerHTML;
		var messagelink=GCAO_siteurl+'mod=messages&submod=messageNew&&profileName='+name+'&sh='+GCAO_secureCode;
		var newtd=document.createElement('td');
		newtd.setAttribute('width','25px');
		newtd.innerHTML='<center><img src="'+img_message+'" onclick="window.location = \''+messagelink+'\'" style="border:0px;width:20px;cursor:pointer;" title="'+L_sentMessage+'"></center>';
		document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].appendChild(newtd);
		var newtd=document.createElement('td');
		newtd.setAttribute('width','80px');
		newtd.setAttribute('align','right');
		newtd.innerHTML=status;
		document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].appendChild(newtd);
		document.getElementById('familyOnlinePlayersList').getElementsByTagName('tr')[i].getElementsByTagName('td')[0].getElementsByTagName('a')[0].removeAttribute('href');
	}
}

//################################################################################################################################
//## LINK TAB
//################################################################################################################################
function links(){
	var img_menuinner = '%3D%3D';
	var img_blackbox = '%3D%3D';

	var img_guild = '';
	var img_medic = '%3D%3D';
	var img_storage = '';
	var img_bank = '';
	var img_jail = '%3D';
	var img_guildfight = '%3D';
	var img_library = '%3D';
	var img_info = '';
	var img_homepage = '';
	var img_photos = '';
	var img_counters = '%3D';
	var img_comments = '%3D';
	var img_simulator = '%3D';
	var img_dungeons = '%3D';
	var img_market = '%3D%3D';
	var img_options = '%3D';
	var img_optionsB = '%3D';
	var img_Lp = '%3D';
	var img_Lm = '';
	var img_Gp = '%3D';
	var img_Gm = '';
	var img_auction = '%3D';
	var img_gloves = '%3D%3D';
	var img_shield = '%3D%3D';
	var img_wearpon = '%3D';
	var img_armor = '';
	var img_helmet = '%3D%3D';
	var img_boots = '%3D%3D';
	var img_loc = '%3D%3D';

	var spanMenuTab = document.createElement('span');
	spanMenuTab.setAttribute('id', 'RightTab');
	spanMenuTab.setAttribute('onclick', 'if(document.getElementById(\'RightTab\')){document.getElementById(\'RightTab\').setAttribute(\'style\', \'z-index:501;width:20px;height:28px;position:absolute;'+GCAO_left+':912px;top:230px;background-image: url(' + img_menutab2 + ');background-repeat: no-repeat;cursor:pointer;\');document.getElementById(\'RightTab\').setAttribute(\'id\', \'RightTabOpened\');document.getElementById(\'RightMenu\').style.display=\'block\';}else if(document.getElementById(\'RightTabOpened\')){document.getElementById(\'RightTabOpened\').setAttribute(\'style\', \'z-index:501;width:20px;height:28px;position:absolute;'+GCAO_left+':848px;top:230px;background-image: url(' + img_menutab1 + ');background-repeat: no-repeat;cursor:pointer;\');document.getElementById(\'RightTabOpened\').setAttribute(\'id\', \'RightTab\');document.getElementById(\'RightMenu\').style.display=\'none\';}');
	spanMenuTab.setAttribute('style', 'z-index:501;width:20px;height:28px;position:absolute;'+GCAO_left+':848px;top:230px;background-image: url(' + img_menutab1 + ');background-repeat: no-repeat;cursor:pointer;');
	document.body.insertBefore(spanMenuTab, document.body.firstChild);
	document.getElementById('content').appendChild(spanMenuTab);

	var spanMenu = document.createElement('span');
	spanMenu.setAttribute('id', 'RightMenu');
	spanMenu.setAttribute('style', 'border:solid 1px #56381d;display:none;z-index:501;width:64px;height:192px;position:absolute;'+GCAO_left+':848px;top:230px;background-image: url(' + img_menuinner + ');background-color:#3c2a16;');
	document.body.insertBefore(spanMenu, document.body.firstChild);
	document.getElementById('content').appendChild(spanMenu);

	spanMenu.innerHTML = '<style type="text/css">.colorfull a:link {text-decoration: none;COLOR: #ffffff;}.colorfull a:visited {text-decoration: none;COLOR: #ffffff;}.colorfull a:hover {text-decoration: none;COLOR: #ffffff;}.colorfull a:active {text-decoration: none;COLOR: #ffffff;}</style>' +
	'<table class="colorfull" border="0px" cellpadding="0px" cellspacing="0px"><tr><td valign="top">' +
	'<a href="index.php?mod=guild&sh=' + GCAO_secureCode + '" title="Guild"><img src="' + img_guild + '" style="margin:3px;width:26px;" border="0px"></a><img id="guild" src="' + img_blackbox + '" style="position:absolute;margin-'+GCAO_left+':-32px;display:none;" onmouseover="document.getElementById(\'AuctionLinks\').style.display=\'none\';document.getElementById(\'OptionsLinks\').style.display=\'none\';document.getElementById(\'MarketLinks\').style.display=\'none\';document.getElementById(\'InfoLinks\').style.display=\'none\';document.getElementById(\'GuildLinks\').style.display=\'block\';document.getElementById(\'info\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'guild\').setAttribute(\'style\', \'display:none;position:absolute;margin-top:-32px;\');document.getElementById(\'market\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'options\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'auction\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');">' +
	'<a href="index.php?mod=market&sh=' + GCAO_secureCode + '" title="Market"><img src="' + img_market + '" style="margin:3px;width:26px;" border="0px"></a><img id="market" src="' + img_blackbox + '" style="position:absolute;margin-'+GCAO_left+':-32px;" onmouseover="document.getElementById(\'AuctionLinks\').style.display=\'none\';document.getElementById(\'OptionsLinks\').style.display=\'none\';document.getElementById(\'MarketLinks\').style.display=\'block\';document.getElementById(\'InfoLinks\').style.display=\'none\';document.getElementById(\'GuildLinks\').style.display=\'none\';document.getElementById(\'info\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'guild\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'market\').setAttribute(\'style\', \'display:none;position:absolute;margin-top:-32px;\');document.getElementById(\'options\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'auction\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');">' +
	'<a href="index.php?mod=auction&sh=' + GCAO_secureCode + '&f=0" title="Auction"><img src="' + img_auction + '" style="margin:3px;width:26px;" border="0px"></a><img id="auction" src="' + img_blackbox + '" style="position:absolute;margin-'+GCAO_left+':-32px;" onmouseover="document.getElementById(\'AuctionLinks\').style.display=\'block\';document.getElementById(\'OptionsLinks\').style.display=\'none\';document.getElementById(\'MarketLinks\').style.display=\'none\';document.getElementById(\'InfoLinks\').style.display=\'none\';document.getElementById(\'GuildLinks\').style.display=\'none\';document.getElementById(\'info\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'guild\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'market\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'options\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'auction\').setAttribute(\'style\', \'display:none;position:absolute;margin-top:-32px;\');">' +
	'<a style="cursor:pointer;" title="Info"><img src="' + img_info + '" style="margin:3px;width:26px;" border="0px"></a><img id="info" src="' + img_blackbox + '" style="position:absolute;margin-'+GCAO_left+':-32px;" onmouseover="document.getElementById(\'AuctionLinks\').style.display=\'none\';document.getElementById(\'OptionsLinks\').style.display=\'none\';document.getElementById(\'MarketLinks\').style.display=\'none\';document.getElementById(\'InfoLinks\').style.display=\'block\';document.getElementById(\'GuildLinks\').style.display=\'none\';document.getElementById(\'info\').setAttribute(\'style\', \'display:none;position:absolute;margin-top:-32px;\');document.getElementById(\'guild\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'market\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px\');document.getElementById(\'options\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'auction\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');">' +
	'<a style="cursor:pointer;" title="Options"><img src="' + img_options + '" style="margin:3px;width:26px;" border="0px"></a><img id="options" src="' + img_blackbox + '" style="position:absolute;margin-'+GCAO_left+':-32px;" onmouseover="document.getElementById(\'AuctionLinks\').style.display=\'none\';document.getElementById(\'OptionsLinks\').style.display=\'block\';document.getElementById(\'MarketLinks\').style.display=\'none\';document.getElementById(\'InfoLinks\').style.display=\'none\';document.getElementById(\'GuildLinks\').style.display=\'none\';document.getElementById(\'info\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'guild\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');document.getElementById(\'market\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px\');document.getElementById(\'options\').setAttribute(\'style\', \'display:none;position:absolute;margin-top:-32px;\');document.getElementById(\'auction\').setAttribute(\'style\', \'display:block;position:absolute;margin-top:-32px;\');">' +
	'<img id="info" src="' + img_blackbox + '">'+
	'</td>' +
	'<td id="GuildLinks" valign="top">' +
	'<a href="index.php?mod=guild_medic&sh=' + GCAO_secureCode + '" title="Medic"><img src="' + img_medic + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=guild_storage&sh=' + GCAO_secureCode + '" title="Storage"><img src="' + img_storage + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=guildBankingHouse&sh=' + GCAO_secureCode + '" title="Bank"><img src="' + img_bank + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=guild_jail&sh=' + GCAO_secureCode + '" title="Jail"><img src="' + img_jail + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=guild_warcamp&sh=' + GCAO_secureCode + '" title="War Camp"><img src="' + img_guildfight + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=guild_library&sh=' + GCAO_secureCode + '" title="Library"><img src="' + img_library + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'</td>' +
	'<td id="MarketLinks" style="display:none;">' +
	'<a href="index.php?mod=market&f=0&fl=0&fq=-1&s=ld&qry=&p=1&sh=' + GCAO_secureCode + '" title="Level Plus"><img src="' + img_Lp + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=market&f=0&fl=0&fq=-1&s=l&qry=&p=1&sh=' + GCAO_secureCode + '" title="Level Minus"><img src="' + img_Lm + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=market&f=0&fl=0&fq=-1&s=pd&qry=&p=1&sh=' + GCAO_secureCode + '" title="Gold Plus"><img src="' + img_Gp + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=market&f=0&fl=0&fq=-1&s=p&qry=&p=1&sh=' + GCAO_secureCode + '" title="Gold Minus"><img src="' + img_Gm + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'</td>' +
	'<td id="AuctionLinks" style="display:none;">' +
	'<a href="index.php?mod=auction&sh=' + GCAO_secureCode + '&f=1" title="Wearpon"><img src="' + img_wearpon + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=auction&sh=' + GCAO_secureCode + '&f=3" title="Armor"><img src="' + img_armor + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=auction&sh=' + GCAO_secureCode + '&f=2" title="Shield"><img src="' + img_shield + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=auction&sh=' + GCAO_secureCode + '&f=4" title="Hhelmet"><img src="' + img_helmet + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=auction&sh=' + GCAO_secureCode + '&f=5" title="Gloves"><img src="' + img_gloves + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'<a href="index.php?mod=auction&sh=' + GCAO_secureCode + '&f=8" title="Boots"><img src="' + img_boots + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'</td>' +
	'<td id="OptionsLinks" style="display:none;">' +
	'<a href="index.php?mod=settings&sh=' + GCAO_secureCode + '" title="Options"><img src="' + img_optionsB + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'</td>' +
	'<td id="InfoLinks" style="display:none;">' +
	'<a href="http://s1.gladiatus.gr/game/index.php?mod=guild_main&submod=link&id=4344" target="_blank" title="Homepage"><img src="' + img_homepage + '" style="margin:3px;width:26px;" border="0px">' +
	'<a href="http://apo.users.uth.gr/index.php?s=simulator" target="_blank" title="Simulator"><img src="' + img_simulator + '" style="margin:3px;width:26px;" border="0px">' +
	'<a href="http://apo.users.uth.gr/index.php?s=counters" target="_blank" title="Counters"><img src="' + img_counters + '" style="margin:3px;width:26px;" border="0px">' +
	'<a href="http://apo.users.uth.gr/index.php?s=monsters" target="_blank" title="Photos"><img src="' + img_photos + '" style="margin:3px;width:26px;" border="0px">' +
	'<a href="http://apo.users.uth.gr/index.php?s=dungeons" target="_blank" title="Dungeons"><img src="' + img_dungeons + '" style="margin:3px;width:26px;" border="0px">' +
	'<a href="http://apo.users.uth.gr/index.php?s=contact" target="_blank" title="Comments"><img src="' + img_comments + '" style="margin:3px;width:26px;" border="0px"></a>' +
	'</td>' +
	'</tr></table>';
}

//################################################################################################################################
//## GUILD WAR MORE STATS
//################################################################################################################################
function guildWarMoreStats(){
	if(document.getElementById('content').getElementsByTagName('img')[2]){
		if(document.getElementById('bx0')){var i=3;}
		else{var i=1;}
		
		var tableHTML = document.getElementById('content').getElementsByTagName('div')[i].innerHTML;

		if(tableHTML.match(/gid=(\d+)/i)){var guilds = document.getElementById('content').getElementsByTagName('div')[i].getElementsByTagName('a').length/2}
		else{var guilds = document.getElementById('content').getElementsByTagName('div')[i].getElementsByTagName('a').length}
		
		document.getElementById('content').getElementsByTagName('div')[i].innerHTML = tableHTML.replace(/<\/th>/i, ' (' + guilds + ')<span style="float:'+GCAO_right+';margin-'+GCAO_right+':7px;"><b>LvL &#216;</b></span><span style="float:'+GCAO_right+';margin-'+GCAO_right+':13px;"><b>'+L_gold+'</b></span></th>');

		var c=0;
		var number_of_guilds=parseInt(GM_getValue('gf', 10))-1;
		while(tableHTML.match(/guild&amp;i=(\d+)/i) && c<=number_of_guilds){
			var guildid = tableHTML.match(/guild&amp;i=(\d+)/i)[1];
			tableHTML = tableHTML.replace(/guild&amp;i=/i, 'guild&i=[DONE]');
			getGuildGold(guildid, i);
			c++;
		}
	}
}

function getGuildGold(id,i){
	GM_xmlhttpRequest({
		method: "GET",
		url: GCAO_siteurl + "mod=guild&submod=forumGladiatorius&i=" + id + "&sh=" + GCAO_secureCode,
		onload: function(response){
			if(response.responseText.match(/mainbox/i)){
				var gold = response.responseText.match(/<th>(.+)<img src\="\d+\/img\/res2\.gif"/i)[1];
				var mesoLevel = response.responseText.match(/0216.<\/td[^<]+<th>([^<]+)/i)[1];
			}
			else{
				var gold = 'Error 1';
				var mesoLevel = 'Error 3';
			}
			showGuildGold(gold,id,i,mesoLevel);
		}
	});
}

function showGuildGold(PulledGold,GuildId,i,mesoLevel){
	document.getElementById('content').getElementsByTagName('div')[i].innerHTML = document.getElementById('content').getElementsByTagName('div')[i].innerHTML.replace('<a href="index.php?mod=guild&amp;i=' + GuildId + '&amp;', '<span style="float:'+GCAO_right+';margin-'+GCAO_right+':15px;">' + mesoLevel + '</span><span style="float:'+GCAO_right+';margin-'+GCAO_right+':25px;"><b>' + PulledGold + '</b> <img border="0" src="' + img_gold + '"></span><a title="" href="index.php?mod=guild&amp;i=' + GuildId + '&amp;');
}

//################################################################################################################################
//## ADVERTISEMENT TOP UP MOVE
//################################################################################################################################
function moveAdd(){
	var image="%3D";
	document.getElementById('mainnav').setAttribute('style','bottom:-25px;');
	document.getElementById('content').setAttribute('style','margin-top:25px;');
	document.getElementById('banner_top').setAttribute('style','top:152px;background-image:url('+image+');');
	document.getElementById('banner_event').style.top='155px';
	if(document.getElementById('cooldown_bar_event')){document.getElementById('cooldown_bar_event').setAttribute('style','margin-top:30px;');}
}

//################################################################################################################################
//## GUILD SAFE
//################################################################################################################################
function guildSafeEdit(){
	if(document.getElementById('content').getElementsByTagName('img')[2]){
		var allbutton=document.createElement("input");
		allbutton.id="allin";
		allbutton.setAttribute("type","button");
		allbutton.setAttribute("class","button3");
		allbutton.setAttribute("value",L_addAll);
		allbutton.setAttribute("style","margin-"+GCAO_right+":17px;");
		allbutton.setAttribute("onclick","document.getElementById('content').getElementsByTagName('input')[0].value=document.getElementById('content').getElementsByTagName('form')[0].parentNode.innerHTML.match(/>([^<]+)<img/i)[1].replace(/ /g,'').replace(/\\\./g,'');");
		document.getElementById('content').getElementsByTagName('input')[0].parentNode.parentNode.setAttribute("valign","top");
		document.getElementById('content').getElementsByTagName('input')[0].parentNode.appendChild(allbutton);
	}
}

function guildSafeLog(){
	if(document.getElementById('content').getElementsByTagName('table')[0]){
		var style = document.createElement("style");
		style.setAttribute('id', 'NoGuildPlayersStyle');
		style.innerHTML = '.notInGuild {display:none;}';
		document.getElementById('content').appendChild(style);
		
		var num=document.getElementById('content').getElementsByTagName('table')[0].getElementsByTagName('tr').length;
		
		//Save the total entries
		GM_setValue('total_guild_enties_'+GCAO_lang+'_'+GCAO_server, num-1);
		
		var sum=0;
		var temp='';
		for(i=1;i<num;i++){
			temp=document.getElementById('content').getElementsByTagName('table')[0].getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML;
			temp=temp.replace(/\./g,'');
			sum=sum+parseInt(temp);
			if(document.getElementById('content').getElementsByTagName('table')[0].getElementsByTagName('tr')[i].getElementsByTagName('td')[1].innerHTML=='-'){
				document.getElementById('content').getElementsByTagName('table')[0].getElementsByTagName('tr')[i].setAttribute('class','notInGuild');
				if(!document.getElementById('ShowNoGuildPlayersButton')){
					var value=document.getElementById('content').getElementsByTagName('table')[0].getElementsByTagName('tr')[i].getElementsByTagName('td')[0].innerHTML;
					var button = document.createElement("tr");
					button.setAttribute('id', 'ShowNoGuildPlayersButton');
					button.setAttribute('colspan', '4');
					button.innerHTML = '<td><input type="button" class="button2" value="'+value+'" onclick="this.style.display=\'none\';document.getElementById(\'NoGuildPlayersStyle\').innerHTML=\'.notInGuild {display:inherited;}\'"></td>';
					document.getElementById('content').getElementsByTagName('tbody')[0].appendChild(button);
				}
			}
		}
		document.getElementById('content').getElementsByTagName('div')[2].innerHTML+= ' <font style="float:'+GCAO_right+';padding-'+GCAO_right+':10px;">('+L_total+': '+dottedNumber(sum)+' <img border="0" align="absmiddle" src="'+img_gold+'">)</font>'
		
		var hisMoney=0;
		var percent=0;
		var othersPerCent=100;
		
		var name='';
		for(i=1;i<num;i++){
			hisMoney=document.getElementById('content').getElementsByTagName('table')[0].getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML.replace(/\./gi,'')*1;
			percent=Math.round((hisMoney/sum)*1000)/10;
			document.getElementById('content').getElementsByTagName('table')[0].getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML+=' <b>('+percent+'%)</b>';
		}
	}
	if(document.getElementById('content').getElementsByTagName('table')[1]){
		var num2=document.getElementById('content').getElementsByTagName('table')[1].getElementsByTagName('tr').length;
		for(i=1;i<num2;i++){
			temp=document.getElementById('content').getElementsByTagName('table')[1].getElementsByTagName('tr')[i].getElementsByTagName('td')[3].innerHTML;
			temp=temp.replace('Sun','<font color="red"><b>Sun</b></font>').replace('Mon','<font color="#660000"><b>Mon</b></font>').replace('Tue','<font color="#006600"><b>Tue</b></font>').replace('Wed','<font color="orange"><b>Wed</b></font>').replace('Thu','<font color="#666666"><b>Thu</b></font>').replace('Fri','<font color="purple"><b>Fri</b></font>').replace('Sat','<font color="#003399"><b>Sat</b></font>');
			document.getElementById('content').getElementsByTagName('table')[1].getElementsByTagName('tr')[i].getElementsByTagName('td')[3].innerHTML=temp;
		}
	}
}

//################################################################################################################################
//## PACKAGE COUNTERS
//################################################################################################################################
function packetCounters(){
	if(document.getElementById('content').getElementsByTagName('table')[1]){
		var counterBar=document.createElement("tr");
		counterBar.innerHTML='<td><div class="title2_box"><div class="title2_inner"><table><tr><td valign="top">'+
		'&bull; <b>'+L_Packages+': <span id="paket_number">0</span></b>'+
		'<table id="paket_counter_table1" style="display:none;padding-'+GCAO_left+':4px;"><tr><td>'+L_packedValue+'</td><td>:</td><td id="paket_value_1"></td></tr><tr><td>'+L_PackedGold+'</td><td>:</td><td id="paket_value_2"></td></tr></table>'+
		'</td><td style="width:10px;"></td><td valign="top">'+
		'&bull; <b>'+L_invItems+': <span id="inv_number">0</span></b>'+
		'<table id="paket_counter_table2" style="display:none;padding-'+GCAO_left+':4px;"><tr><td>'+L_invValue+'</td><td>:</td><td id="inventory_value_1"></td></tr></table>'+
		'</td></tr></table></div></div></td>';
		
		var counterBar2=document.createElement("tr");
		counterBar2.setAttribute('id','searchTotPakBox');
		counterBar2.innerHTML='<td><div class="title2_box"><div class="title2_inner"><table><tr><td valign="top" width="150px">'+
		'<input id="searchTotPakValue" type="button" class="button3" value="'+L_total+'"><input id="hasBeenLaunched" type="hidden" value="0"></td> <td width="150"><span align="center" id="total_pak_value" value="0"></span>  <img id="totalImage" style="display:none;" src="'+img_gold+'"/></td> <td text-align="right"> <span align="right" style="display:none;" id="total_page"><input type="hidden" id="currentPage" value="0"><input type="hidden" id="maxPage" value="0"></div></span> ' +
		'</td></tr></table></div></div></td>';
		document.getElementById('content').getElementsByTagName('table')[1].appendChild(counterBar);
		document.getElementById('content').getElementsByTagName('table')[1].appendChild(counterBar2);
		
		//Make the "Collect Gold" button
		var collectbutton=document.createElement("input");
		collectbutton.setAttribute('id','collectbutton');
		collectbutton.setAttribute('class','button2');
		collectbutton.setAttribute('type','submit');
		collectbutton.setAttribute('display','none');
		collectbutton.setAttribute('value',L_collectGold);
		collectbutton.setAttribute('style','display:none;float:'+GCAO_right+';');
		collectbutton.innerHTML='';
		document.getElementById('content').getElementsByTagName('table')[1].appendChild(collectbutton);
		document.getElementById('collectbutton').addEventListener('click', lootGold, false);
		
		var x=0;
		while(!document.body.getElementsByTagName('script')[x].innerHTML.match('AddCharDiv') && (x<100)){x++;}
		
		if(document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("paket_\w+.*?\/table/i)){
			if(document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("paket_\w+.*?\/table/g).length>0){
				var pakets=document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("paket_\w+.*?\/table/g).length;
				document.getElementById('paket_number').innerHTML=pakets;
				var sumValues=0;
				var sumValues2=0;
				var gold_packages=0;
				for(i=0;i<pakets;i++){
					if(document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("paket_\w+.*?\/table/g)[i]){
						var txt=document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("paket_\w+.*?\/table/g)[i];
						if(txt.match(/<img/g)){
							if(document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("paket_\w+.*?\/table/g)[i].match(/>([^<]+)<img/i)){
								var value=document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("paket_\w+.*?\/table/g)[i].match(/>([^<]+)<img/i)[1].replace(/\./g,'').match(/(\d+)/i)[1];
							}else{
								var value=0;
							}
							sumValues=parseInt(sumValues)+parseInt(value);
						}else if(txt.match(/>\d+[^<]+</i)){
							var value=txt.match(/>(\d+[^<]+)</i)[1].replace(/\./g,'').match(/(\d+)/i)[1];
							var id=txt.match(/\d+/g)[0];
							document.getElementById('collectbutton').innerHTML=document.getElementById('collectbutton').innerHTML+id+'#';
							document.getElementById('collectbutton').setAttribute('style','display:block;float:'+GCAO_right+';');
							sumValues2=parseInt(sumValues2)+parseInt(value);
						}else{
							var value = 0 ;
						}
					}
				}
				document.getElementById('paket_counter_table1').style.display='block';
				document.getElementById('paket_value_1').innerHTML=dottedNumber(sumValues)+' <img src="'+img_gold+'"/>';
				document.getElementById('paket_value_2').innerHTML=dottedNumber(sumValues2)+' <img src="'+img_gold+'"/>';
			}
		}
		if(document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("p\w+_\w+_\w+".*?\/table/g)){
			if(document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("p\w+_\w+_\w+".*?\/table/g).length>0){
				var inv=document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("p\w+_\w+_\w+".*?\/table/g).length;
				document.getElementById('inv_number').innerHTML=inv;
				var sumValues=0;
				for(i=0;i<inv;i++){
					try{var value=document.body.getElementsByTagName('script')[x].innerHTML.match(/AddCharDiv\("p\w+_\w+_\w+".*?\/table/g)[i].match(/>([^<]+)<img/i)[1].replace(/\./g,'').match(/(\d+)/i)[1];}
					catch(err){var value=0;}
					sumValues=parseInt(sumValues)+parseInt(value);
				}
				document.getElementById('paket_counter_table2').style.display='block';
				document.getElementById('inventory_value_1').innerHTML=dottedNumber(sumValues)+' <img src="'+img_gold+'"/>';
			}
		}
		
		document.getElementById('searchTotPakValue').addEventListener('click', function(){searchTotPakValue();}, false);
		if(!document.getElementById('content').innerHTML.match(/page=\d+">\d+</g)){
			document.getElementById('searchTotPakBox').style.display='none';
		}
		var bar = document.createElement('div');
		bar.innerHTML = '<div style="margin-'+GCAO_left+':-20px;margin-top:-10px;cursor:pointer;background-image:url(\'http://s1.gladiatus.gr/game/img/ui/bar.jpg\');height:21px;overflow:hidden;position:absolute;width:140px;"><div id="pageBar" style="width: 0%;" class="cooldown_bar_fill cooldown_bar_fill_progress"></div><div style="color: #C8B38A;font-size: 12px;font-weight: bold;height: 100%;'+GCAO_left+': 0;padding-top: 1px;position: absolute;text-align: center;width: 100%;" id="cooldown_bar_fill_page">0</div></div>';
		document.getElementById('total_page').appendChild(bar);
	}
}

function searchTotPakValue(){
	if(document.getElementById('hasBeenLaunched').value == 0){

		var last = false;
		document.getElementById('hasBeenLaunched').value = 1;
		var divs = document.evaluate(".//div[@class='paging_numbers']",document.getElementById('content'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		divs = document.evaluate("(.//a)|(.//span)",divs.snapshotItem(0),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		var pageMax = parseInt(divs.snapshotItem(divs.snapshotLength-1).innerHTML);
		document.getElementById('maxPage').value=pageMax;
		
		document.getElementById('currentPage').value=0;
		document.getElementById('total_pak_value').innerHTML = 0;
		document.getElementById('totalImage').setAttribute('style','');
		document.getElementById('total_page').setAttribute('style','');
		document.getElementById('cooldown_bar_fill_page').innerHTML='0 / '+pageMax+' (0%)';
		document.getElementById('pageBar').style.width='0%';
		for(var j=1;j<pageMax+1;j++){
			totalPackValue(j);
		}
	}
}

function totalPackValue(page){
	GM_xmlhttpRequest({
		method: "GET",
		url: GCAO_siteurl + 'mod=packages&sh='+GCAO_secureCode+'&page='+page,
		onload: function(response){
			for(var i = 0; i<response.responseText.match(/AddCharDiv\("paket_\w+.*?\/table/g).length;i++) {
				try{
					var txt=response.responseText.match(/AddCharDiv\("paket_\w+.*?\/table/g)[i];
					if(txt.match(/<img/g)){
						var value=response.responseText.match(/AddCharDiv\("paket_\w+.*?\/table/g)[i].match(/>([^<]+)<img/i)[1].replace(/\./g,'').match(/(\d+)/i)[1];
					}
					else if(txt.match(/>\d+[^<]+</i)){
						var value=txt.match(/>(\d+[^<]+)</i)[1].replace(/\./g,'').match(/(\d+)/i)[1];
					}
					else{var value=0;}
					document.getElementById('total_pak_value').innerHTML = dottedNumber(parseInt(document.getElementById('total_pak_value').innerHTML.replace(/\./g,'')) + parseInt(value));
				}
				catch(err){var value=0;}
			}
			document.getElementById('currentPage').value=parseInt(document.getElementById('currentPage').value)+1;
			var test = Math.floor(100*parseInt(document.getElementById('currentPage').value)/parseInt(document.getElementById('maxPage').value))+'%';
			document.getElementById('pageBar').style.width = test;
			document.getElementById('cooldown_bar_fill_page').innerHTML = document.getElementById('currentPage').value+' / '+document.getElementById('maxPage').value+' ('+test+')';
			
			if(document.getElementById('currentPage').value==document.getElementById('maxPage').value)
				document.getElementById('pageBar').className = "cooldown_bar_fill cooldown_bar_fill_ready";
				
		}
	});
}

function lootGold(){
	var data=document.getElementById('collectbutton').innerHTML;
	var data=data.split('#');
	
	var gold_packeges=0;
	var i=0;
	while(data[i]){
		gold_packeges++;
		i++;
	}
	
	document.getElementById('collectbutton').value='0 / '+gold_packeges;
	var i=0;
	while(data[i]){
		GM_xmlhttpRequest({
			method: "GET",
			url: GCAO_siteurl.replace('index.php?','')+'ajax/paketswap.php?pid='+data[i]+'&new=p512_1_1&sh='+GCAO_secureCode,
			onload: function(response){
				var number=document.getElementById('collectbutton').value.match(/(\d+) \//i)[1]*1+1;
				document.getElementById('collectbutton').value=number+' / '+gold_packeges;
				if(number==gold_packeges){
					document.getElementById('collectbutton').value=L_Done;
					document.location.href=document.location.href;
				}
			}
		});
		i++;
	}
}//&a=1333015964250

//################################################################################################################################
//## SHOW PLAYER'S ID
//################################################################################################################################
function showId(){
	var playerid = document.location.href.match(/p=(\d+)/i)[1];
	var table = document.createElement("div");
	table.setAttribute('class', 'charstats_bg');
	table.setAttribute('style', 'margin-top:-4px;');
	table.innerHTML = '<span class="charstats_value21">'+L_ID+'</span><span class="charstats_value22" id="char_schaden">' + playerid + '</span></div>';
	document.getElementById('charstats').appendChild(table);
	
	var table2 = document.createElement("div");
	table2.setAttribute('style', 'background-image: url(\'img/char_status_abschluss.jpg\'); width: 173px; height: 5px; overflow: hidden;');
	document.getElementById('charstats').appendChild(table2);
}

//################################################################################################################################
//## SHOW PLAYER'S ID
//################################################################################################################################
function exteendStats(){
	var searchCrit = document.getElementById('char_schaden_tt').getAttribute('onmouseover');
	searchCrit = searchCrit.split(' %')[0].split('>');
	//var L_critic = searchCrit[searchCrit.length-3].replace('</td','').replace(/^\s+/,'');
	var Critic = searchCrit[searchCrit.length-1];
		
	var searchBlock = document.getElementById("char_panzer").parentNode.getAttribute('onmouseover');
	searchBlock = searchBlock.split(" %");
	
	//var L_Resistance=searchBlock[1].split(">")[22].replace('</td','').replace(/^\s+/,'');
	//var L_block=searchBlock[0].split(">")[45].replace('</td','').replace(/^\s+/,'');
	
	var Resistance = searchBlock[0].substring(searchBlock[0].length-2,searchBlock[0].length);
	if(Resistance[0]==">") Resistance = Resistance[1];
	
	var Block = searchBlock[1].substring(searchBlock[1].length-2,searchBlock[1].length);
	if(Block[0]==">") Block = Block[1];
	
	//Input the stats
	document.getElementById('char_panzer').innerHTML='<font size="1" color="#505050">('+Resistance+'%/'+Block+'%)</font> '+document.getElementById('char_panzer').innerHTML;
	document.getElementById('char_schaden').innerHTML='<font size="1" color="#505050">('+Critic+'%)</font> '+document.getElementById('char_schaden').innerHTML;
	
	//Make tabs
	/*var table = document.createElement("div");
	table.setAttribute('class', 'charstats_bg');
	table.setAttribute('style', 'margin-top:-4px;');
	table.innerHTML = '<span class="charstats_value21">'+L_Resistance+'</span><span class="charstats_value22" id="char_schaden">' + Resistance + '%</span></div>';
	document.getElementById('charstats').appendChild(table);
	
	var table = document.createElement("div");
	table.setAttribute('class', 'charstats_bg');
	table.innerHTML = '<span class="charstats_value21">'+L_critic+'</span><span class="charstats_value22" id="char_schaden">' + Critic + '%</span></div>';
	document.getElementById('charstats').appendChild(table);
	
	var table = document.createElement("div");
	table.setAttribute('class', 'charstats_bg');
	table.innerHTML = '<span class="charstats_value21">'+L_block+'</span><span class="charstats_value22" id="char_schaden">' + Block + '%</span></div>';
	document.getElementById('charstats').appendChild(table);
	
	var table2 = document.createElement("div");
	table2.setAttribute('style', 'background-image: url(\'img/char_status_abschluss.jpg\'); width: 173px; height: 5px; overflow: hidden;');
	document.getElementById('charstats').appendChild(table2);*/
}

//################################################################################################################################
//## RUBIES CONFIRMATION BOXES
//################################################################################################################################

//For expedition
function expeditionConfirmRubies(){
	var expeditions = document.evaluate(".//input[@class='expedition_button']",document.getElementById('content'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
	// If there is a timer 
	if(document.getElementById('ticker1'))
		for(var i = 0;i<expeditions.snapshotLength;i++)
			expeditions.snapshotItem(i).setAttribute('onclick','if(confirm("'+L_sure+'")) '+expeditions.snapshotItem(i).getAttribute('onclick'));
}

//For auction
function confirmRubies(){
	var buyouts = document.getElementsByName('buyout');
	for(var i = 0;i<buyouts.length;i++)
		buyouts[i].addEventListener('click', grabClick, false);
}

function grabClick(event){
	if(event.button == 0) {
		if(!confirm(L_sure)){
			event.stopPropagation();
			event.preventDefault();
		}
		return;
	}
}

//For auction, filter all items
function filterClick(event){
	if(event.button == 0) {
	var value = document.forms[0].elements["itemType"].value*1;
		if(value==0){
			if(!confirm(L_sure)){
				event.stopPropagation();
				event.preventDefault();
			}
			return;
		}
	}
}

//For market renew
function confirmGoodsRenew(){
	if(document.getElementsByName('bestechen')[0]){
		document.getElementsByName('bestechen')[0].addEventListener('click', grabClick, false);
	}
}

//################################################################################################################################
//## PRICE RATIO
//################################################################################################################################
function priceRatio(){
	if(document.getElementById('market_item_table')){
		var style = document.createElement('style');
		style.innerHTML='input.button2 {background-image: url("'+img_button3+'");border: 0 none;color: #453011;font-size: 11px;font-weight: bold;height: 26px;width: 79px;}';
		document.getElementById('content').appendChild(style);
		
		if(document.getElementById('market_item_table').getElementsByTagName('th')[0].innerHTML.length>9){
			document.getElementById('market_item_table').getElementsByTagName('th')[0].innerHTML = 'Items';
		}
		var items = document.getElementById('market_item_table').getElementsByTagName('tr').length-1;
		
		document.getElementById('market_item_table').parentNode.parentNode.style.margin=' 0px -30px 0px -10px';
		document.getElementById('market_item_table').parentNode.parentNode.parentNode.childNodes[3].style.margin=' 0px -30px 0px -10px';
		
		var ratioHead=document.createElement('th');
		ratioHead.innerHTML='<u title="'+L_ratioTitle+'">Ratio</u>';
		ratioHead.setAttribute('style','text-align:right;color:#612D04;');
		document.getElementById('market_item_table').getElementsByTagName('tr')[0].insertBefore(ratioHead , document.getElementById('market_item_table').getElementsByTagName('tr')[0].getElementsByTagName('th')[5]);
		
		var ratioTd;var sellPrice;var value;var price;var data;var ratio;var color;var life;var foodratio;var kathetos;
		
		var x=0;
		while(!document.body.getElementsByTagName('script')[x].innerHTML.match('AddCharDiv') && (x<100)){x++;}
		var dataScript = document.getElementsByTagName('script')[x].innerHTML;
		var i=1;
		while(i<=items){
			if(dataScript.match(/AddCharDiv..buy.[^"]+.([^"]+)./i)){
				ratioTd=document.createElement('td');
				ratioTd.setAttribute('style','text-align:right;padding-'+GCAO_right+':5px;padding-'+GCAO_left+':0px;');
				sellPrice=document.getElementById('market_item_table').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML.replace(/\./g,'').match(/(\d+)/i)[1];
				data=dataScript.match(/AddCharDiv..buy.[^"]+.([^"]+)./i)[1].replace(/\./g,'');
				foodratio='';
				kathetos='';
				if(data.match(/\d+ [^<]+<\/td>[^\+]+\+\d+ /i)){
					life=data.match(/(\d+) [^<]+<\/td>[^\+]+\+\d+ /i)[1]*1;
					intel=data.match(/\d+ [^<]+<\/td>[^\+]+\+(\d+) /i)[1]*1;
					foodratio=life/sellPrice;
					foodratio=roundNumber(foodratio);
					foodratio='<b color="black">'+foodratio+'</b>';
					kathetos=' | ';
				}try{
					price=data.match(/\d+ <img/g)[0].match(/\d+/i);
					value=data.match(/\d+ <img/g)[1].match(/\d+/i);
				}catch(e){}
				dataScript=dataScript.replace("AddCharDiv('buy",'[DONE]');
				ratio=sellPrice/((parseInt(price)+parseInt(value))/2);
				ratio=roundNumber(ratio);
				if(ratio<0.3){color='green';}
				else if(ratio<5.99){color='gray';}
				else if(ratio<9.99){color='#FF9000';}
				else{color='red';}
				if(GM_getValue('rr', false) == false){if(kathetos==''){ratio='<center>-</center>';color='black';}else{ratio='';kathetos='';}}
				ratioTd.innerHTML=foodratio+kathetos+'<font color="'+color+'"><b>'+ratio+'</b></font>';
				document.getElementById('market_item_table').getElementsByTagName('tr')[i].insertBefore(ratioTd , document.getElementById('market_item_table').getElementsByTagName('tr')[i].getElementsByTagName('td')[5]);
				i++;
			}
		}
	}
}

//################################################################################################################################
//## AUCTION EXTEND ITEM'S TABLE
//################################################################################################################################
function auctionExtendTable(){
	var itemNum=document.forms.length - 1;
	if(document.getElementById('auction_table') && itemNum>5){
		if(GM_getValue('an', true) == true){var top=27;}
		else{var top=62;}
		var img_aemidle='%3D';
		var img_aedown='%3D%3D';
		var img_aetop='%3D';
		
		if(invert_image_code==''){
			var this_value=new Array();
			this_value[0]=0;
			this_value[1]=-279;
			this_value[2]=-280;
		}else{
			var this_value=new Array();
			this_value[0]=-549;
			this_value[1]=-559;
			this_value[2]=-560;
			img_aemidle='';
		}
		
		document.getElementById('auction_table').setAttribute('style',"margin: "+top+"px -1px 0px -280px;padding-"+GCAO_left+":279px;padding-top:10px;background:url('"+img_aemidle+"') repeat-y "+GCAO_left+" top;z-index:35;");
		document.getElementById('auction_table').getElementsByTagName('table')[0].style.margin=' 0px '+this_value[0]+'px 0px -269px';
		
		var bgDown=document.createElement('img');
		bgDown.src=img_aedown;
		bgDown.setAttribute('style',"position:absolute;margin-"+GCAO_left+":"+this_value[1]+"px;z-index:50;"+invert_image_code);
		document.getElementById('auction_table').appendChild(bgDown);
		
		var bgTop=document.createElement('img');
		bgTop.src=img_aetop;
		bgTop.setAttribute('style',"position:absolute;margin-"+GCAO_left+":"+this_value[1]+"px;margin-top:-20px;z-index:35;"+invert_image_code);
		document.getElementById('auction_table').insertBefore(bgTop,document.getElementById('auction_table').getElementsByTagName('table')[0]);
		
		for(i=5;i<=itemNum;i=i+6){
			document.getElementById('auction_table').getElementsByTagName('td')[i-1].id='td1';
			document.getElementById('auction_table').getElementsByTagName('td')[i].id='td2';
		}
		
		var style=document.createElement('style');
		style.innerHTML='.auction_bid_div {height:115px;} #td1{position:absolute;width:265px;margin-top:-252px;margin-'+GCAO_left+':538px;}#td2{position:absolute;width:265px;margin-top:-126px;margin-'+GCAO_left+':538px;}';
		document.getElementById('content').appendChild(style);
	}
}

//################################################################################################################################
//## MORE PLAYER STATS
//################################################################################################################################
function morePlayerStats(){
	//Translation variables
	var L_win = document.getElementById('content').getElementsByTagName('th')[1].innerHTML.replace(/:/g, '');
	var L_lost = document.getElementById('content').getElementsByTagName('th')[2].innerHTML.replace(/:/g, '');
	//Arena variables (+)
	var battles = document.getElementById('content').getElementsByTagName('td')[0].innerHTML.replace(/\./g, '');
	var bwin = document.getElementById('content').getElementsByTagName('td')[1].innerHTML.replace(/\./g, '');
	var blost = document.getElementById('content').getElementsByTagName('td')[2].innerHTML.replace(/\./g, '');
	var wgold = document.getElementById('content').getElementsByTagName('td')[6].innerHTML.replace(/\./g, '').replace(/ <(.+)>/g, '');
	var lgold = document.getElementById('content').getElementsByTagName('td')[7].innerHTML.replace(/\./g, '').replace(/ <(.+)>/g, '');
	//Turma variables
	var battles_t = document.getElementById('content').getElementsByTagName('td')[9].innerHTML.replace(/\./g, '');
	var bwin_t = document.getElementById('content').getElementsByTagName('td')[10].innerHTML.replace(/\./g, '');
	var blost_t = document.getElementById('content').getElementsByTagName('td')[11].innerHTML.replace(/\./g, '');
	var wgold_t = document.getElementById('content').getElementsByTagName('td')[13].innerHTML.replace(/\./g, '').replace(/ <(.+)>/g, '');
	var lgold_t = document.getElementById('content').getElementsByTagName('td')[14].innerHTML.replace(/\./g, '').replace(/ <(.+)>/g, '');
	//Steals to dotted number
	if(document.getElementById('content').getElementsByTagName('td')[23]){
		var steals = document.getElementById('content').getElementsByTagName('td')[23].innerHTML;
		document.getElementById('content').getElementsByTagName('td')[23].innerHTML = dottedNumber(steals);
	}
	
	//Arena Calculations
	if(blost==0){var ratio = 0;}
	else{var ratio = Math.round(((bwin*1)/(blost*1))*100)/100;}
	if(battles==0){var posostonikon = 0;}
	else{var posostonikon = Math.round(((bwin*1)/(battles*1))*10000)/100;}
	var sWGold = (wgold*1)-(lgold*1);
	var color1 = "";
	if (ratio>1){color1 = "green";}
	else if (ratio<1){color1 = "red";}
	var color2 = "";
	if (posostonikon>=50){color2 = "green";}
	else if (posostonikon<50){color2 = "red";}
	var color3 = "";
	if (sWGold>0){color3 = "green";}
	else if (sWGold<0){color3 = "red";}
	sWGold = dottedNumber(sWGold);
	
	//Turma Calculations
	if(blost_t==0){var ratio_t = 0;}
	else{var ratio_t = Math.round(((bwin_t*1)/(blost_t*1))*100)/100;}
	if(battles_t==0){var posostonikon_t = 0;}
	else{var posostonikon_t = Math.round(((bwin_t*1)/(battles_t*1))*10000)/100;}
	var sWGold_t = (wgold_t*1)-(lgold_t*1);
	var color1_t = "";
	if (ratio_t>1){color1_t = "green";}
	else if (ratio_t<1){color1_t = "red";}
	var color2_t = "";
	if (posostonikon_t>=50){color2_t = "green";}
	else if (posostonikon_t<50){color2_t = "red";}
	var color3_t = "";
	if (sWGold_t>0){color3_t = "green";}
	else if (sWGold_t<0){color3_t = "red";}
	sWGold_t = dottedNumber(sWGold_t);
	
	//Arena FIXES
	//Make the Ratio line
	var LocationLink = document.getElementById('content').getElementsByTagName('tr')[3];
	var statsNewElement = document.createElement('tr');
	statsNewElement.setAttribute('Id','Ratio');
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	document.getElementById('Ratio').innerHTML = '<th>'+L_win+'/'+L_lost+' ratio:</th><td style="white-space: nowrap; color: ' + color1 + ';">' + ratio + '</td>';
	//Make the Win % line
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[5];
	statsNewElement = document.createElement('tr');
	statsNewElement.setAttribute('Id','PosostoNikon');
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	document.getElementById('PosostoNikon').innerHTML = '<th>'+L_win+' %:</th><td style="white-space: nowrap; color: ' + color2 + ';">' + posostonikon + '%</td>';
	//Copy the Straight Wins Line highter
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[6];
	statsNewElement = document.createElement('tr');
	statsNewElement.innerHTML = document.getElementById('content').getElementsByTagName('tr')[10].innerHTML;
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	//Leave empty lines
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[7];
	statsNewElement = document.createElement('tr');
	statsNewElement.innerHTML = '&nbsp';
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[10];
	statsNewElement = document.createElement('tr');
	statsNewElement.innerHTML = '&nbsp';
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	//Change the Straight Wins to Total Gold
	document.getElementById('content').getElementsByTagName('tr')[13].innerHTML = '<th>'+L_totalGold+':</th><td style="white-space: nowrap; color: ' + color3 + ';">' + sWGold + ' <img border="0" align="absmiddle" src="'+img_gold+'"></td>';
	
	//Turma FIXES
	//Make the Ratio line
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[17];
	statsNewElement = document.createElement('tr');
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	statsNewElement.innerHTML = '<th>'+L_win+'/'+L_lost+' ratio:</th><td style="white-space: nowrap; color: ' + color1_t + ';">' + ratio_t + '</td>';
	//Make the Win % line
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[19];
	statsNewElement = document.createElement('tr');
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	statsNewElement.innerHTML = '<th>'+L_win+' %:</th><td style="white-space: nowrap; color: ' + color2_t + ';">' + posostonikon_t + '%</td>';
	//Copy the Straight Wins Line highter
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[20];
	statsNewElement = document.createElement('tr');
	statsNewElement.innerHTML = document.getElementById('content').getElementsByTagName('tr')[22].innerHTML;
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	//Leave empty lines
	LocationLink = document.getElementById('content').getElementsByTagName('tr')[21];
	statsNewElement = document.createElement('tr');
	statsNewElement.innerHTML = '&nbsp';
	LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
	//Change the Straight Wins to Total Gold
	document.getElementById('content').getElementsByTagName('tr')[24].innerHTML = '<th>'+L_totalGold+':</th><td style="white-space: nowrap; color: ' + color3_t + ';">' + sWGold_t + ' <img border="0" align="absmiddle" src="'+img_gold+'"></td>';
	
	if (document.getElementById('stats_wealth')){
		var aksia1 = document.getElementById('stats_wealth').getElementsByTagName('td')[0].innerHTML.replace(/\./g, '').replace(/ <(.+)>/g, '');
		var aksia2 = document.getElementById('stats_wealth').getElementsByTagName('td')[1].innerHTML.replace(/\./g, '').replace(/ <(.+)>/g, '');
		var totalValue = (aksia1*1) + (aksia2*1);
		totalValue = dottedNumber(totalValue);
		
		LocationLink = document.getElementById('stats_wealth').getElementsByTagName('tr')[0];
		statsNewElement = document.createElement('tr');
		statsNewElement.setAttribute('Id','TotalValue');
		LocationLink.parentNode.insertBefore(statsNewElement, LocationLink);
		document.getElementById('TotalValue').innerHTML = '<th>'+L_totalItemValue+':</th><td style="white-space: nowrap;">' + totalValue + ' <img border="0" align="absmiddle" src="'+img_gold+'"></td>';
	}
}

//################################################################################################################################
//## NEW FORUM MESSAGE
//################################################################################################################################
function newForumMessage(){
	GM_xmlhttpRequest({
		method: "GET",
		url: 'http://board.gladiatus.'+GCAO_lang+'/index.php?page=Index',
		onload: function(response){
			if(response.responseText.match('<div class="info deletable" id="pmOutstandingNotifications">')){
				var newMessage = response.responseText.split('<div class="info deletable" id="pmOutstandingNotifications">')[1].split('</div>')[0];
			}else if(response.responseText.match('<div class="info" id="pmOutstandingNotifications">')){
				var newMessage = response.responseText.split('<div class="info" id="pmOutstandingNotifications">')[1].split('</div>')[0];
			}else{var newMessage = '<p>Error</p>'}
			var line = newMessage.split('<p>')[1].split('</p>')[0].replace(/[^0-9]/g,'');
			newMessage = newMessage.split('<p>')[1].split('</p>')[0] + newMessage.split('<p>')[1].split('</p>')[1];
			
			if(response.responseText.match('pmOutstandingNotifications')){
				var heigth = 40+line*24;
				document.getElementById('header_game').getElementsByTagName('a')[3].parentNode.innerHTML+=' <img src="'+img_exclamation+'" style="position:absolute;margin-'+GCAO_left+':4px;margin-top:1px;opacity: 0.65;" onmouseover="this.style.opacity=\'1\';document.getElementById(\'NewForumMessage\').style.display=\'block\';" onClick="if(this.style.opacity==\'0.65\'){this.style.opacity=\'1\';document.getElementById(\'NewForumMessage\').style.display=\'block\';} else {this.style.opacity=\'0.65\';document.getElementById(\'NewForumMessage\').style.display=\'none\';}">';
				var forumNewMessageTip = document.createElement('div');
				forumNewMessageTip.setAttribute('id', 'NewForumMessage');
				forumNewMessageTip.setAttribute('style', 'opacity: 0.75; display: none; width: 300px; z-index: 502; position: absolute; top: 30px; '+GCAO_left+': 550px; border: 1px solid grey; background-color: black; color: rgb(192, 192, 192); font-weight: bold; height: '+heigth+'px; line-height: 24px; padding-'+GCAO_left+': 5px; padding-right: 5px;text-align:left;')
				forumNewMessageTip.innerHTML = newMessage;//L_newMail;
				for(var i =0;i<forumNewMessageTip.getElementsByTagName('a').length;i++){
					forumNewMessageTip.getElementsByTagName('a')[i].setAttribute('target','_blank');
				}
				document.getElementById('header_game').appendChild(forumNewMessageTip);
			}
		}
	});
}

//################################################################################################################################
//## GUILD MAIL CHANGES
//################################################################################################################################
function guildMailChanges(){
	if(document.getElementById('content').getElementsByTagName('input')[2]){
		var toolbar = document.createElement('span');
		toolbar.setAttribute('id', 'ToolBar');
		toolbar.setAttribute('style', '');
		var p2 = document.getElementById('message');
		p2.parentNode.insertBefore(toolbar,p2);

		if(GM_getValue('bb', false) == true){
			var bbCode = '<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcode_bold.gif" title="Bold selected text" class="bbcode_button" onclick="var textArea = $(\'message\');var startTag = \'[b]\';var closeTag = \'[#b]\';var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');var selectedText = textArea.getSelectedText();textArea.set(\'value\', text.substring(0, pos.start) + startTag + selectedText + closeTag + text.substring(pos.end, text.length));"></li>' +
			'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcode_italic.gif" title="Italic selected text" class="bbcode_button" onclick="var textArea = $(\'message\');var startTag = \'[i]\';var closeTag = \'[#i]\';var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');var selectedText = textArea.getSelectedText();textArea.set(\'value\', text.substring(0, pos.start) + startTag + selectedText + closeTag + text.substring(pos.end, text.length));"></li>' +
			'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcode_center.png" title="Put selected text at the center" class="bbcode_button" onclick="var textArea = $(\'message\');var startTag = \'[c]\';var closeTag = \'[#c]\';var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');var selectedText = textArea.getSelectedText();textArea.set(\'value\', text.substring(0, pos.start) + startTag + selectedText + closeTag + text.substring(pos.end, text.length));"></li>' +
			'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcode_link.png" title="Selected text is a link" class="bbcode_button" onclick="var textArea = $(\'message\');var startTag = \'[l]\';var closeTag = \'[#l]\';var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');var selectedText = textArea.getSelectedText();textArea.set(\'value\', text.substring(0, pos.start) + startTag + selectedText + closeTag + text.substring(pos.end, text.length));"></li>' +
			'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcode_img.png" title="Selected text is an image" class="bbcode_button" onclick="var textArea = $(\'message\');var startTag = \'[img]\';var closeTag = \'[#img]\';var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');var selectedText = textArea.getSelectedText();textArea.set(\'value\', text.substring(0, pos.start) + startTag + selectedText + closeTag + text.substring(pos.end, text.length));"></li>' +
			'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcode_video.png" title="Selected text is a video" class="bbcode_button" onclick="var textArea = $(\'message\');var startTag = \'[v]\';var closeTag = \'[#v]\';var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');var selectedText = textArea.getSelectedText();textArea.set(\'value\', text.substring(0, pos.start) + startTag + selectedText + closeTag + text.substring(pos.end, text.length));"></li>';
		}else{var bbCode='<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcodedisabledimage.png"/></li>';}
		
		document.getElementById('ToolBar').innerHTML = '<style type="text/css">textarea, .inputText {border-width: 1px;width: 98.5%;}textarea {padding-'+GCAO_left+': 3px;}.subTabMenu {border: 1px;margin-bottom: -1px;margin-top: -2px;padding: 1px;position: relative;z-index: 0;}.subTabMenu:after {content: "";clear: both;display: block;height: 0;}.subTabMenu .containerHead {margin: 0;padding: 2px;min-height: 5px;}.subTabMenu .containerHead h2, .subTabMenu .containerHead h3 {padding: 2px 5px;}.subTabMenu .containerHead:after {content: "";clear: both;display: block;height: 0;}.subTabMenu ul {list-style: none;margin: 0;padding: 0;}.subTabMenu li {float: '+GCAO_left+';}.subTabMenu li a {text-decoration: none;white-space: nowrap;margin: 1px;padding: 2px 6px;display: block;}.subTabMenu li.activeSubTabMenu a, .subTabMenu li a:hover {border-width: 1px;padding: 1px 5px;}.subTabMenu .containerHead div {font-size: 5px;height: 5px;}.mceToolbar {height: auto !important; display: block;}.mceToolbar ul {margin: 0 3px;padding: 0;width: 99.5%; display: block;float: '+GCAO_left+';}.mceToolbar li {display: block;position: relative;}.mceToolbar li a {margin: 1px;padding: 1px;}.mceToolbar li a:hover {margin: 1px;padding: 0;}.mceToolbar li.activeSubTabMenu a {margin: 1px;padding: 0;}.subTabMenu{background-color:#C6B08B}.subTabMenu div.containerHead{border-color:#C6B08B}.subTabMenu{border-style:solid}.containerHead{background-color:#8B7355}textarea{background-color:#fff;border-color:#8da4b7;border-style:solid;font-family:\'Trebuchet MS\', Arial, sans-serif;color:#333;font-size:.85em}textarea:focus{background-color:#fff9f4;border-color:#fa2;border-width:1px;color:#000}</style>' +
		'<div class="subTabMenu" width="400px"><div class="containerHead"><div class="mceToolbar" id="mce_editor_0_toolBar"><ul>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/bbcode_smiles.png" title="Open smileys bar" class="bbcode_button" onclick="if(document.getElementById(\'smiles\').style.display==\'none\'){document.getElementById(\'smiles\').style.display=\'block\';}else{document.getElementById(\'smiles\').style.display=\'none\';}"></li>' +
		bbCode+'</ul>'+
		'<br><ul style="display:none;margin-top:3px;" id="smiles">'+
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/smile.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' :) \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/sad.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' :( \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/biggrin.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' :D \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/wink.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' ;) \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/w00t.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' 8o \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/unsure.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' :S \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/tongue.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' :P \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/squint.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' ^^ \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/mellow.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' :| \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/crying.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' ;( \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/cool.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' 8) \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/confused.png" style="cursor:pointer;margin:3px;margin-top:-4px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' ?( \' + text.substring(pos.end, text.length));"></li>' +
		'<li><img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/blink.png" style="cursor:pointer;margin:3px;" onclick="var textArea = $(\'message\');var pos = textArea.getSelectedRange();var text = textArea.get(\'value\');textArea.set(\'value\', text.substring(0, pos.start) + \' 8| \' + text.substring(pos.end, text.length));"></li>' +
		'</ul>'+
		'</div></div></div>';
		
		document.getElementsByTagName('textarea')[0].style.width='509px';
		
		var buttons = document.createElement('tr');
		buttons.innerHTML='<td colspan="4"><div id="buttons" style="background:#DBCBA5;border-top:1px solid #AF8E50;border-bottom:1px solid #AF8E50;padding:5px;margin:10px -5px 0px -10px;">'+
		'<input type="checkbox" id="Check All" checked="checked" > <label for="Check All">'+L_checkAll+'</label></div></td>';
		var p2 = document.getElementById('ToolBar').parentNode.parentNode;
		p2.parentNode.insertBefore(buttons,p2);
		
		if(document.getElementById('mainbox').getElementsByTagName('tr')[0]){
			var num=document.getElementById('mainbox').getElementsByTagName('tr').length-4;
			var changeThemToo='';
			for(i=2;i<num;i++){
				var prevTd=document.getElementById('mainbox').getElementsByTagName('tr')[i-1].getElementsByTagName('td')[2].innerHTML;
				var thisTd=document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML;
				if(thisTd!=prevTd){
					document.getElementById('buttons').innerHTML+=' | <input type="checkbox" id="'+thisTd+'" checked="checked"><label for="'+thisTd+'">'+thisTd+'</label>';
					document.getElementById(thisTd).setAttribute('onclick',"var countTheChecked=0;for(i=2;i<"+num+";i++){if(document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML==this.getAttribute('id')){document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[0].getElementsByTagName('input')[0].checked=this.checked;}if(document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[0].getElementsByTagName('input')[0].checked){countTheChecked=countTheChecked+1;}}countTheChecked=countTheChecked+2;if(countTheChecked!="+num+"){document.getElementById('Check All').checked=false;}else{document.getElementById('Check All').checked=true;}");
					changeThemToo+="document.getElementById('"+thisTd+"').checked=this.checked;"
				}
			}
			document.getElementById("Check All").setAttribute('onclick',"for(i=2;i<"+num+";i++){document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[0].getElementsByTagName('input')[0].checked=this.checked;}"+changeThemToo);
			
		}
	}
}

//################################################################################################################################
//## CHAT
//################################################################################################################################
function Chat(){
	if(document.getElementById('mainmenu')){
		var chatlink = document.createElement('a');
		chatlink.setAttribute('id', 'ChatLink');
		chatlink.setAttribute('class', 'menuitem');
		chatlink.setAttribute('title', 'Chat');
		chatlink.setAttribute('href', '#');
		chatlink.innerHTML='Chat';
		var targetElement=document.getElementById('mainmenu').getElementsByTagName('a')[2];
		insertAfter(chatlink,targetElement);
		
		document.getElementById("ChatLink").addEventListener("click", makeChatSelection, false);
	}
}

function makeChatSelection(){
	if(document.getElementById('mainmenu').getElementsByTagName('a')[0]){
		var j=document.getElementById('mainmenu').getElementsByTagName('a').length;
		var t=false;var i=0;
		while(!t && i<j){
			if(document.getElementById('mainmenu').getElementsByTagName('a')[i].getAttribute('class')=='menuitem_aktive' && !document.getElementById('mainmenu').getElementsByTagName('a')[i].innerHTML.match(/\(/i)){
				document.getElementById('mainmenu').getElementsByTagName('a')[i].setAttribute('class','menuitem');
				t=true;
			}else if(document.getElementById('mainmenu').getElementsByTagName('a')[i].getAttribute('class')=='submenuitem_aktive'){
				document.getElementById('mainmenu').getElementsByTagName('a')[i].setAttribute('class','submenuitem');
				t=true;
			}
			i++;
		}
	}
	document.getElementById('ChatLink').setAttribute('class','menuitem_aktive');
	if(document.getElementById('content')){
		if(Get_Cookie('playerName')){
			var username=Get_Cookie('playerName');
		}else{
			var username='Anonymous_'+Math.floor(Math.random()*1001);
		}
		if(Get_Cookie('guildName')){
			var guildbutton='';
		}else{
			var guildbutton=' style="opacity:0.55;" onclick="document.getElementById(\'errorlog\').innerHTML=\''+L_noGuildText+'.\';"';
		}
		document.getElementById('content').innerHTML='<div style="margin-top:0px;" class="contentItem">'+
		'<h3>Select a chat room</h3><div class="contentItem_content">'+
		'<div style="background: url(http://epiratiko.webs.com/images/chat_icon.png) top left; background-repeat: no-repeat;position:absolute;margin:-10px;width:120px;height:120px;"></div>'+
		'<div style="margin-'+GCAO_left+':120px;margin-top:16px;">'+
		'<div id="Username"><b><font size="4">'+L_Username+': </font></b><font size="4"><i>'+username+'</i></font></div>'+
		'<div id="Username"><b><font size="4">Server: </font></b><font size="4"><i>'+GCAO_server+'</i></font></div>'+
		'<div id="Username"><b><font size="4">'+L_Country+': </font></b><font size="4"><i>'+GCAO_lang+'</i></font></div>'+
		'<br><input type="button"'+guildbutton+'id="guildChat" value="'+L_GuildChat+'" class="button2"> '+
		'<input type="button" id="countryChat" value="'+L_CountryChat+'" class="button2"> '+
		'<input type="button" id="globalChat" value="'+L_GlobalChat+'" class="button2"><br>'+
		'<span id="errorlog"></span><br><br></div></div></div>';
		
		if(document.getElementById('mainnav')){
			var numberOfTabs=document.getElementById('mainnav').getElementsByTagName('li').length;
			document.getElementById('mainnav').getElementsByTagName('li')[0].getElementsByTagName('a')[0].innerHTML='Chat';
			document.getElementById('mainnav').getElementsByTagName('li')[0].setAttribute('style','pngfix  current');
			var i=1;
			while(i<numberOfTabs){
				document.getElementById('mainnav').getElementsByTagName('li')[i].style.display='none';
				i++;
			}
		}
		
		if(Get_Cookie('guildName')){document.getElementById("guildChat").addEventListener("click", guildChat, false);}
		document.getElementById("countryChat").addEventListener("click", countryChat, false);
		document.getElementById("globalChat").addEventListener("click", globalChat, false);
	}
}

function guildChat(){
	if(Get_Cookie('playerName')){
		var username=Get_Cookie('playerName');
	}else{
		var username='Anonymous_'+Math.floor(Math.random()*1001);
	}
	var guildname=Get_Cookie('guildName');
	var guildRoom='GCA_'+guildname+'_Chat';
	makechat(username,guildRoom,guildname+' Chat');
}

function countryChat(){
	if(Get_Cookie('playerName')){
		var username=Get_Cookie('playerName')+'_s'+GCAO_server;
	}else{
		var username='Anonymous_'+Math.floor(Math.random()*1001)+'_s'+GCAO_server;
	}
	var countryRoom='GCA_'+GCAO_lang+'_Chat';
	makechat(username,countryRoom,L_CountryChat);
}

function globalChat(){
	if(Get_Cookie('playerName')){
		var username=Get_Cookie('playerName')+'_'+GCAO_lang+'_s'+GCAO_server;
	}else{
		var username='Anonymous_'+Math.floor(Math.random()*1001)+'_'+GCAO_lang+'_s'+GCAO_server;
	}
	var globalRoom='GCA_Global_Chat';
	makechat(username,globalRoom,L_GlobalChat);
}

function makechat(username,room,text){
	username=username.replace(/[;:{}+=()*&^%$#@]/g,'_').replace(/\[/g,'_').replace(/\]/g,'_');
	document.getElementById('content').innerHTML='<div class="contentItem">'+
	'<h3>'+text+'</h3><div class="contentItem_content">'+
	'<applet width="506" height="500" archive="papplet.jar" code="pclient.main.ChatClient.class" codebase="http://64.13.158.25/pchat/bc">'+
	'<param value="papplet.cab" name="cabbase">'+
	'<param value="free_no_roam" name="Net.Site">'+
	'<param value="'+room+'" name="Net.Room">'+
	'<param value="TRUE" name="Ctrl.AutoLogin">'+
	'<param value="false" name="Ad.BrandOn">'+
	'<param value="E7DEB8" name="Col.MainBg">'+
	'<param value="000000" name="Col.MainFg">'+
	'<param value="false" name="Ctrl.Roam">'+
	'<param value="'+username+'" name="Net.User">'+
	'</applet></div></div>'+
	'<span style="margin-top:-10px;">Powerad By <a href="http://www.parachat.com/" target="blank">Parachat</a>!<br>'+
	'<font style="font-size:8px;">If you can\'t access chat be sure that you are using the latest version of Sun Java, which is available for free in <a href="http://www.java.com/" target="_blank">http://www.java.com</a></span></font>';
}

//################################################################################################################################
//## REMEMBER TABS
//################################################################################################################################
function rememberTabs(event){
	var pageTarget=event.target+'';
	if (!pageTarget.match(/http/i)){pageTarget=event.target.parentNode+'';}
	if(pageTarget.match(/http/i)){
		if(pageTarget.match(/mod=(\w+)/i)){
			RTmod=pageTarget.match(/mod=(\w+)/i)[1];
			if(pageTarget.match(/submod=(\w+)/i)){var RTsubmod=pageTarget.match(/submod=(\w+)/i)[1];}
			else{var RTsubmod = 'noSubmod';}
			//&& RTmod!=GCAO_mod
			if(!pageTarget.match(/inv=\d+/i)){
				if(RTmod=='overview' || RTmod=='inventory' || RTmod=='packages' || RTmod=='guild_storage' || RTmod=='auction' || RTmod=='market' || RTmod=='guild_market' || RTmod=='guild_library'){
					if(Get_Cookie('PlayerInv')){
						if(event.target.href){
							event.target.href+='&inv='+Get_Cookie('PlayerInv');
						}else{
							event.target.parentNode.href+='&inv='+Get_Cookie('PlayerInv');
						}
					}
					if(RTmod=='inventory'){
						var sub=pageTarget.match(/sub=(\d+)/i)[1];
						if(Get_Cookie('Merchandsub'+sub)){
							event.target.href+='&subsub='+Get_Cookie('Merchandsub'+sub);
						}
					}
				}
			}else{
				Set_Cookie('PlayerInv',pageTarget.match(/inv=(\d+)/i)[1]);
				if(RTmod=='inventory'){
					if(pageTarget.match(/&subsub=(\d+)/i)[1]){
						var sub=pageTarget.match(/&sub=(\d+)/i)[1];
						Set_Cookie('Merchandsub'+sub,pageTarget.match(/&subsub=(\d+)/i)[1]);
					}
				}
			}
		}
	}
}

//################################################################################################################################
//## NEWS
//################################################################################################################################
function GCAnews(){
	var mainnav = document.getElementById('mainnav');
	var newTab = document.createElement('li');
	newTab.className='pngfix';
	newTab.innerHTML = '<a style="cursor:pointer;" class="pngfix" href="'+GCAO_siteurl+'mod=guild_bath&sh='+GCAO_secureCode+'&index&GCAnews">GCA News ! </a>';
	mainnav.appendChild(newTab);
}

function seeGCANews(){
	GM_setValue('ShowNewsAlert',false);
	for(var i =0;i<document.getElementById('mainnav').childNodes.length-1;i++)
		document.getElementById('mainnav').childNodes[i].firstChild.className='pngfix ';
	document.getElementById('mainnav').childNodes[document.getElementById('mainnav').childNodes.length-1].firstChild.className='pngfix  current';
	document.getElementById('content').innerHTML = '<div class="title_box"><div class="title_inner">Gladiatus Crazy Add-on News</div></div>';
	document.getElementById('content').innerHTML += '<div class="title2_box"><div class="title2_inner" style="margin-left:0px;margin-'+GCAO_right+':5px;" id="GCAO_CommentBox"></div></div>';
	document.getElementById('GCAO_CommentBox').innerHTML='<center>Downloading the latest news.</center>';
	GM_xmlhttpRequest({
		method: "GET",
		url: 'http://apo.users.uth.gr/gca/News.txt',
		onload: function(response){
			var data=response.responseText;
			var displayed='';
			var name='Name';
			var text='Text';
			var code='Date';
			while(data.match(/##C=([^#]+)##/i)){
				code=data.match(/##C=([^#]+)##/i)[1];
				name=data.match(/##N=([^#]+)##/i)[1];
				text=data.match(/##T=([^#]+)##/i)[1];
				data=data.replace('##C=','##CDONE=').replace('##N=','##NDONE=').replace('##T=','##TDONE=');
				var checkname=name.toLowerCase();
				if(checkname.match(/gif.>(\w+)/i)){checkname=checkname.match(/gif.>(\w+)/i)[1];}
				else if(checkname.match(/>(\w+)<.a/i)){checkname=checkname.match(/>(\w+)<.a/i)[1];}
				if(checkname=='greatapo'){var image='http://board.gladiatus.fr/wcf/images/avatars/avatar-2288.jpg'}
				else if(checkname=='djor'){var image='http://board.gladiatus.fr/wcf/images/avatars/avatar-2336.jpg'}
				else if(checkname=='darkthanos'){var image='http://board.gladiatus.fr/wcf/images/avatars/avatar-2287.jpg'}
				else{var image='http://images.webs.com/static/global/profile_images/noProfilePic_male_100x100.gif'}
				displayed+='<div style=\"position:absolute;margin:5px;\"><b>'+name+'</b></div><font style=\"position:absolute;margin-'+GCAO_left+':450px;margin-top:5px;\">('+code+')</font><div id=\"'+code+'\" style=\"background-color:#EFEAD5;border:1px solid #BBA86E;padding:5px;min-height:100px;\"><img src=\"'+image+'\" style=\"margin-top:20px;margin-'+GCAO_left+':0px;width:70px;position:absolute;\"><div style=\"margin-'+GCAO_left+':80px;margin-top:20px;\">'+text+'</div></div><br/>';
			}
			document.getElementById('GCAO_CommentBox').innerHTML=displayed;
		}
	});
}

//################################################################################################################################
//## CHECK FOR NEWS
//################################################################################################################################
function checkForNews(){
	GM_xmlhttpRequest({
		method: "GET",
		url: 'http://apo.users.uth.gr/gca/News.txt',
		onload: function(response){
			var comments = response.responseText;
			if(comments.match(/##C=[^#]+##/i)){
				var commentNumber = comments.match(/##C=([^#]+)##/i)[1].replace(/\//gi,'');
				if(commentNumber!=GM_getValue('LastCommentNumber',0)){
					var d=new Date();
					GM_setValue('LastCommentNumber',commentNumber);
					GM_setValue('ShowNewsAlert',true);
				}
			}
		}
	});
}

function showNewsAlert(){
	document.getElementById('mainmenu').getElementsByTagName('a')[2].innerHTML+=' <img id="NewsAlertImage" src="'+img_exclamation+'" style="position:absolute;margin-'+GCAO_left+':10px;margin-top:1px;opacity: 0.65;" onmouseout="document.getElementById(\'mainmenu\').getElementsByTagName(\'a\')[2].setAttribute(\'href\',\''+GCAO_result[1]+'mod=guild&sh='+GCAO_secureCode+'\');this.style.opacity=\'0.65\';document.getElementById(\'newsAlert\').style.display=\'none\';" onmouseover="document.getElementById(\'mainmenu\').getElementsByTagName(\'a\')[2].removeAttribute(\'href\');this.style.opacity=\'1\';document.getElementById(\'newsAlert\').style.display=\'block\';">';
	var alertTip = document.createElement('div');
	alertTip.setAttribute('id', 'newsAlert');
	alertTip.setAttribute('style', 'opacity: 0.75;display:none;width:300px;z-index:502;position:absolute;top:237px;'+GCAO_left+':345px;border:1px solid grey;background-color:black;color:#c0c0c0;font-weight:bold;height:24px;line-height:24px;padding-left:5px;padding-right:5px;')
	alertTip.innerHTML = L_newsAlert;
	document.getElementById('header_game').appendChild(alertTip);
	
	document.getElementById('mainmenu').getElementsByTagName('a')[2].setAttribute('href',GCAO_siteurl+'mod=guild_bath&sh='+GCAO_secureCode+'&index&GCAnews');
}

//################################################################################################################################
//## CHANGE CURSOR
//################################################################################################################################
function changeTheCursor(){
	var choosedCur=GM_getValue('cu', 0);
	
	if(choosedCur==1){
	//WoW
		var normalCur='%3D';
		var pointerCur='%3D';
		var moveCur='%3D%3D';
		var textCur='%3D%3D';
		var attackCur='%3D';
	}else if(choosedCur==2){
	//Oxygen Black
		var normalCur='';
		var pointerCur='%3D%3D';
		var moveCur='%3D%3D';
		var textCur='%3D%3D';
		var attackCur='%3D%3D';
	}else if(choosedCur==3){
	//Oxygen White
		var normalCur='%3D%3D';
		var pointerCur='%3D%3D';
		var moveCur='%3D%3D';
		var textCur='%3D';
		var attackCur='%3D%3D';
	}else if(choosedCur==4){
	//Sword
		var normalCur='%3D%3D';
		var pointerCur='%3D';
		var moveCur='';
		var textCur='%3D';
		var attackCur='%3D';
	}
	
	var cursorStyle=document.createElement('style');
	cursorStyle.innerHTML="body , select {cursor:url("+normalCur+"),default}";
	cursorStyle.innerHTML+="body a , .charmercsel , .bbcode_button , input[type=\"checkbox\"] , input[type=\"radio\"] , input[type=\"submit\"] , input[type=\"button\"] , input[type=\"image\"] , .achievement_last_ten , .header , #select tr.hover td , #select tr.hover th , #select tr th.selection , #select tr.select td , #select tr , .achievement_header {cursor:url("+pointerCur+"),pointer}";
	cursorStyle.innerHTML+="input , textarea {cursor:url("+textCur+"),text}";
	cursorStyle.innerHTML+="#inv img , #char img , #shop img {cursor:url("+moveCur+"),move}";
	if(GCAO_mod=='packages'){cursorStyle.innerHTML+=" #content div div table div img {cursor:url("+moveCur+"),move}";}
	if(GCAO_mod=='player'){cursorStyle.innerHTML+=" #content input[type=\"button\"] {cursor:url("+attackCur+"),move}";}
	if(document.getElementById('p8_1_1')){document.getElementById('p8_1_1').style.cursor="url("+pointerCur+"),pointer";}
	document.body.appendChild(cursorStyle);
	
	if(document.getElementById('mainnav').getElementsByTagName('a')[0]){
		for(i=0;i<document.getElementById('mainnav').getElementsByTagName('a').length;i++){
			document.getElementById('mainnav').getElementsByTagName('a')[i].style.cursor="url("+pointerCur+"),pointer";
		}
	}
	if(document.getElementById('ButtonsDiv')){
		if(document.getElementById('ButtonsDiv').getElementsByTagName('img')[0]){
			for(i=0;i<document.getElementById('ButtonsDiv').getElementsByTagName('img').length;i++){
				document.getElementById('ButtonsDiv').getElementsByTagName('img')[i].style.cursor="url("+pointerCur+"),pointer";
			}
		}
	}
	if(GCAO_mod=='arena' && document.getElementById('content').getElementsByTagName('img')[0]){
		for(i=0;i<document.getElementById('content').getElementsByTagName('img').length;i++){
			if(document.getElementById('content').getElementsByTagName('img')[i].src.match(/fordern/i)){
				document.getElementById('content').getElementsByTagName('img')[i].style.cursor="url("+attackCur+"),pointer";
			}
		}
	}else if(GCAO_mod=='overview' && GCAO_submod=='achievements'){
		for(i=0;i<document.getElementById('content').getElementsByTagName('div').length;i++){
			if(document.getElementById('content').getElementsByTagName('div')[i].getAttribute('class')){
				if(document.getElementById('content').getElementsByTagName('div')[i].getAttribute('class').match('title_inner')){
					document.getElementById('content').getElementsByTagName('div')[i].setAttribute('style',"cursor: url("+pointerCur+"),pointer");
				}
			}
		}
	}else if(GCAO_mod=='dungeon'){
		if(document.getElementById('content').getElementsByTagName('area')){
			for(i=0;i<document.getElementById('content').getElementsByTagName('area').length;i++){
				document.getElementById('content').getElementsByTagName('area')[i].setAttribute('style',"cursor: url("+attackCur+"),pointer");
			}
		}
	}
	if(document.getElementById('wio')){document.getElementById('wio').style.cursor="url("+pointerCur+"),pointer";}
	if(document.getElementById('cooldown_bar_fill_life')){document.getElementById('cooldown_bar_fill_life').parentNode.style.cursor="url("+pointerCur+"),pointer";}
}

//################################################################################################################################
//## CAN I EAT THIS?
//################################################################################################################################
function canIeatThis(){
	if(document.getElementById('inv')){
		var healpoints=document.getElementById('char_leben_tt').getAttribute('onmouseover').match(/(\d+) \/ (\d+)/i);
		var lostPoints=healpoints[2]*1-healpoints[1]*1;
		if(lostPoints>0){
			if(!document.getElementById('lost_life')){
				var newFont = document.createElement('font');
				newFont.setAttribute('id','lost_life');
				newFont.setAttribute('style','font-size:0.9em;text-align:'+GCAO_left+';position:absolute;margin-top:-12px;margin-'+GCAO_left+':86px;width:169px;');
				document.getElementById('char_leben_tt').appendChild(newFont);
			}
			document.getElementById('lost_life').innerHTML='(<font color="red">-'+lostPoints+'</font>)';
			
			//change the life bar to smaller
			var newStyle = document.createElement('style');
			newStyle.innerHTML = '.charstats_balken2{background-image: url("http://s1.gladiatus.de/game/img/energie_balken_grund.gif");float:left;height:6px;left: 10px;margin-right: 10px;margin-top: 11px;overflow: hidden;position: absolute;top: 0;width: 75px;}';
			document.getElementById('content').appendChild(newStyle);
			document.getElementById('char_leben_tt').getElementsByTagName('div')[0].setAttribute('class','charstats_balken2');
		}else{
			if(document.getElementById('lost_life')){
				document.getElementById('lost_life').innerHTML='(<font color="red">-0</font>)';
			}
		}
		
		var x=0;
		
		var stop=false;
		while(!document.body.getElementsByTagName('script')[x].innerHTML.match('AddCharDiv') && (x<100) && !stop){
			if(!document.body.getElementsByTagName('script')[x+1]){
				stop=true;
			}else{
				x++;
			}
		}
		
		var divs = document.evaluate(".//img",document.getElementById('inv'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		for(var i = 0; i< divs.snapshotLength;i++){
			var type = divs.snapshotItem(i).getAttribute('src').split('_')[0];
			type = type[type.length-1];
			if(type==7){
				var AddCharDiv =document.body.getElementsByTagName('script')[x].innerHTML.split('AddCharDiv("'+divs.snapshotItem(i).parentNode.id)[1].split('AddCharDiv("')[0];
				if(AddCharDiv.split("<td ")[2]){
					if(AddCharDiv.split("<td ")[2].indexOf('(')!=-1){var lifeCure = AddCharDiv.split("<td ")[3].split(':')[4].split('<')[0].replace(/[^0-9]/g,'');}
					else{var lifeCure = AddCharDiv.split("<td ")[2].split(':')[4].split('<')[0].replace(/[^0-9]/g,'');}
					
					var foo = document.getElementById('char_leben_tt').getAttribute('onmouseover').split('</td>')[1].split('>')[1];
					var lifeToCure = parseInt(foo.split(' / ')[1]) - parseInt(foo.split(' / ')[0]);
					if(lifeToCure<lifeCure){divs.snapshotItem(i).style.backgroundColor='rgba(255, 0, 0, 0.2)';}
				}
			}
		}
	}
}

//################################################################################################################################
//## GUILD MEDIC BOX
//################################################################################################################################
function guildMedicBox(){
	if(!document.getElementById('content').getElementsByTagName('input')[1] && document.getElementById('content').getElementsByTagName('p')[0]){
		var healPercent=document.getElementById('content').getElementsByTagName('p')[0].innerHTML.match(/(\d+)%/i)[1];
		var healpoints=document.getElementById('char_leben_tt').getAttribute('onmouseover').match(/(\d+) \/ (\d+)/i);
		var currentPoints=healpoints[1]*1;
		var maxPoints=healpoints[2]*1;
		var lifePercent=Math.round(currentPoints/maxPoints*100);
		var medicPoints=Math.round(maxPoints*(healPercent/100));
		var afterHealPoints=currentPoints+medicPoints;
		if(afterHealPoints>maxPoints){afterHealPoints=maxPoints;}
		var afterPersent=Math.round(afterHealPoints/maxPoints*100);
		
		var newDiv = document.createElement('div');
		newDiv.setAttribute('class','title2_box');
		newDiv.setAttribute('style','width:298px;margin-'+GCAO_left+':220px;margin-top:90px;');
		newDiv.innerHTML = '<div class="title2_inner"><table>'+
		'<tr><td>'+L_currentLife+'</td><td>:</td><td>'+currentPoints+' / '+maxPoints+'</td><td>('+lifePercent+'%)</td></tr>'+
		'<tr><td>'+L_lostLife+'</td><td>:</td><td><font color="red">-'+(maxPoints-currentPoints)+'</font></td><td>('+(100-lifePercent)+'%)</td></tr>'+
		'<tr><td>'+L_healLife+'</td><td>:</td><td><font color="green">+'+medicPoints+'</font></td><td>('+healPercent+'%)</td></tr>'+
		'<tr><td>'+L_afterLife+'</td><td>:</td><td>'+afterHealPoints+'</td><td>('+afterPersent+'%)</td></tr>'+
		'</table></div>';
		document.getElementById('content').appendChild(newDiv);
	}
}

//################################################################################################################################
//## DROPPED ITEMS
//################################################################################################################################
// Function which allow to search dropped objects in the reports list (expedition or donjon)
function searchObjects(){
	if(!document.getElementById('bx0')){
		var divs = document.evaluate(".//div[@class='report_statistic']",document.getElementById('content'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		var divsIMG = document.evaluate(".//img[substring(@src,5)='/img/interface/package.gif']",divs.snapshotItem(0),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		var divsTR = document.evaluate(".//tr",divs.snapshotItem(0),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);

		var array = new Array();

		//Allow to know in which row the package is (array[5]= 8 means the 5th object is at the 8th row)
		for(var i =0; i<divsTR.snapshotLength;i++)
			if(divsTR.snapshotItem(i).innerHTML.match('package.gif'))
				array[array.length] = i-1;

		for(var i =0; i<divsIMG.snapshotLength;i++){
			var divsTD = document.evaluate(".//td",divsIMG.snapshotItem(i).parentNode.parentNode,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
			var uurl = GCAO_siteurl + divsTD.snapshotItem(4).firstChild.getAttribute('href').substring(10); //Begin with "index.php?" and we don't want (already in GCAO_siteurl var)
			getObject(divsIMG,array,uurl,i);
		}
	}
}

// Get the html table of the object i in the reports list at the url uurl
function getObject(divsIMG,array,uurl,i){
	// alert(uurl+'   '+i);
	GM_xmlhttpRequest({
		method: "GET",
		url: uurl,
		onload: function(response){
			divsIMG.snapshotItem(i).removeAttribute('title');
			divsIMG.snapshotItem(i).setAttribute('onmouseover','document.getElementById(\'object'+i+'\').style.display=\'block\'');
			divsIMG.snapshotItem(i).setAttribute('onmouseout','document.getElementById(\'object'+i+'\').style.display=\'none\'');
			var warningTip = document.createElement('div');
			warningTip.setAttribute('id', 'object'+i);
			// HTML table of the object (with good ' and " ...)
			var text = response.responseText.replace(/submenuitem_inactive"  onMouseOver="return escape/gi,'').split('return escape(\'')[13].split('\')"><img')[0].replace(/\\'/g,'"');
			warningTip.setAttribute('style', 'opacity: 0.90; display: none; z-index: 502; position: absolute; top: '+(320+array[i]*22)+'px; '+GCAO_left+': 890px; background-color: black; color: rgb(192, 192, 192); font-weight: bold; text-align: left;');
			warningTip.innerHTML = text;
			document.getElementById('header_game').appendChild(warningTip);
		}
	});
}

//################################################################################################################################
//## SAVE GUILDMATES IDS
//################################################################################################################################
function saveGuildmatesIDs(){
    var mates = new Array();
	var c=1;
	if(document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td').length==5){
		var d=document.getElementById('mainbox').getElementsByTagName('a').length-5;
		while(c<d){
			if(document.getElementById('mainbox').getElementsByTagName('tr')[c]){
				var mateID=document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td')[0].innerHTML.match(/&amp;p=(\d+)/i)[1];
				var mateNAME=document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td')[0].innerHTML.match(/>([^<]+)</i)[1];
				mates[c]=mateNAME+"<"+mateID;
				c++;
			}
		}
		Set_Cookie("GCAOguildMates",mates.join("#"),365);
	}
}

//################################################################################################################################
//## MORE MEMBER STATS
//################################################################################################################################
function moreMemberStats(){
	var temp=document.getElementById('mainbox').getElementsByTagName('tr').length*1-1;;
	if(document.getElementById('mainbox').getElementsByTagName('tr')[temp].getElementsByTagName('th')[0]){
		var c=1;
		var trs=document.getElementById('mainbox').getElementsByTagName('tr').length-1;
		var players=trs-2;
		var totalLevel=0;
		var totalHonor=0;
		var stopPlaying=0;
		var stopPlayingNames='';
		var offlineNames='';
		var onlineNames='';
		var mateNAME='';
		var online=0;
		var offline=0;
		var total_entries=GM_getValue('total_guild_enties_'+GCAO_lang+'_'+GCAO_server, 0);
		if(total_entries==0){
			var total_entries='Not enough info';
		}
		while(c<=trs){
			if(document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td').length==5){
				var mateNAME=document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td')[0].innerHTML.match(/>([^<]+)</i)[1];
				var level=document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td')[2].innerHTML;
				var honor=document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td')[3].innerHTML.replace(/\./gi,'');
				var status=document.getElementById('mainbox').getElementsByTagName('tr')[c].getElementsByTagName('td')[4].innerHTML;
				if(honor.match('color')){honor=honor.match(/>([^<]+)</i)[1];}
				if(status.match('>-<')){
					stopPlaying++;
					var comma=', ';
					if(stopPlaying==1){comma='';}
					stopPlayingNames+=comma+mateNAME;
				}
				if(status.match('color:Green') || status.match('color:#406000')){
					online++;
					var comma=', ';
					if(online==1){comma='';}
					onlineNames+=comma+mateNAME;
				}else{
					offline++;
					var comma=', ';
					if(offline==1){comma='';}
					offlineNames+=comma+mateNAME;
				}
				totalLevel+=level*1;
				totalHonor+=honor*1;
			}
			c++;
		}
		averageLevel=totalLevel*1/players*1;
		document.getElementById('mainbox').getElementsByTagName('tr')[trs].getElementsByTagName('th')[0].innerHTML+='<br/><br/>Stats <a style="float:'+GCAO_right+';" onclick="document.getElementById(\'LongNotSeen\').setAttribute(\'style\',\'width:80px;\');this.style.display=\'none\';document.getElementById(\'Name1\').style.display=\'block\';document.getElementById(\'Name2\').style.display=\'block\';document.getElementById(\'Name3\').style.display=\'block\';">(Show player Names)</a><table><tr><td>Total Honor</td><td>:</td><td>'+dottedNumber(totalHonor*1)+'</td></tr><tr><td>Average Level</td><td>:</td><td>'+roundNumber(averageLevel)+'<td></tr><tr><td>Online players</td><td>:</td><td>'+online+'</td><td> </td><td id="Name1" style="display:none;color:green;">('+onlineNames+')</td></tr><tr><td>Offline players</td><td>:</td><td>'+offline+'</td><td> </td><td id="Name2" style="display:none;color:red;">('+offlineNames+')</td></tr><tr><td id="LongNotSeen">Long time not seen players</td><td>:</td><td>'+stopPlaying+'</td><td> </td><td id="Name3" style="display:none;color:#BF2000;">('+stopPlayingNames+')</td></tr><tr><td>Total guilds entries</td><td>:</td><td>'+total_entries+'</td><td></td><td></td></tr></table>';
	}
}

//################################################################################################################################
//## EXPIRED PACKAGES
//################################################################################################################################
function expiredPackages(diffHourMin){
	GM_xmlhttpRequest({
		method: "GET",
		url: GCAO_siteurl + 'mod=packages&sh='+GCAO_secureCode+'&page=9999',
		onload: function(response){
			var packets = response.responseText.split('<span style="float:'+GCAO_left+';margin-'+GCAO_right+':5px">');
			if(packets.length!=1){
				var lastPacket = packets[packets.length-1];
				var lastTime = lastPacket.split('<br />')[4];
				
				var day = lastTime.split(', ')[1].split('.')[0];
				var month = lastTime.split(', ')[1].split('.')[1];
				var hour = lastTime.split(' - ')[1].split(':')[0];
				var minute = lastTime.split(' - ')[1].split(':')[1];
				var seconde = lastTime.split(' - ')[1].split(':')[2];
				
				var d = new Date();
				var currenthay = d.getDate();
				var currentMonth = d.getMonth()+1; //+1 because getMonth gives [0-11], not [1-12] for month
				var currentHour = d.getHours()+1; // +1 because it's better to have the next hour... 
				var currentMinute = d.getMinutes();
				var currentSecond = d.getSeconds();
				
				// Ecart à déterminer : ~12h
				var diffHour;
				// In the same month
				if(month==currentMonth){
					// in the same day
					if(day==currenthay){
						diffHour = hour-currentHour;
					}else{
						diffHour= hour-currentHour+24*(day-currenthay);
					}
				}
				// Not in the same month
				else{
					// Number of days in the month
					if((currentMonth==1)||(currentMonth==3)||(currentMonth==5)||(currentMonth==7)||(currentMonth==8)||(currentMonth==10)||(currentMonth==12))
						var numberDays = 31;
					else if(currentMonth==2)
						var numberDays = 28;
					else
						var numberDays = 30;
					
					diffHour= hour-currentHour+24*(day+numberDays-currenthay);
				}
				
				if(diffHour<diffHourMin)
					document.getElementById('menue_packages').innerHTML += '<img src="'+img_exclamation+'" style="position:absolute;margin-'+GCAO_left+':5px;opacity: 0.90;" onmouseout="this.style.opacity=\'0.90\';" onmouseover="this.style.opacity=\'1\';" onClick="'+GCAO_siteurl + 'mod=packages&sh='+GCAO_secureCode+'&page=9999" title="'+L_PackagesWillExpire+' ! '+diffHour+' '+L_hours+'">';
				
			}
		}
	});
	var divs = document.evaluate(".//a[@id='menue_packages']/div[@class='menue_new_count']",document.body,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
	if(divs.snapshotLength==1){
		var numberOfNewPackages = parseInt(divs.snapshotItem(0).innerHTML.replace(/[^0-9]/gi,''));
		numberOfNewPackages+=GM_getValue('numberOfNewPackages'+GCAO_lang+'_'+GCAO_server, 0);
		document.getElementById('menue_packages').getElementsByTagName('div')[0].innerHTML=' '+numberOfNewPackages+' ';
		GM_setValue('numberOfNewPackages'+GCAO_lang+'_'+GCAO_server, numberOfNewPackages);
	}else{
		var numberOfNewPackages=GM_getValue('numberOfNewPackages'+GCAO_lang+'_'+GCAO_server, 0);
		if(numberOfNewPackages!=0){
			document.getElementById('menue_packages').setAttribute('class','menue_packages_highlight');
			document.getElementById('menue_packages').innerHTML='<div class="menue_new_count"> '+numberOfNewPackages+' </div>';
		}
	}
}

//################################################################################################################################
//## SEE NEW MESSAGE
//################################################################################################################################
function seeNewMessage(){
	var divs = document.evaluate(".//a[@id='menue_messages']/div[@class='menue_new_count']",document.body,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
	if(divs.snapshotLength==1){
		var numberOfNewMessages = parseInt(divs.snapshotItem(0).innerHTML.replace(/[^0-9]/gi,''));
		numberOfNewMessages+=GM_getValue('numberOfNewMessages'+GCAO_lang+'_'+GCAO_server, 0);
		document.getElementById('menue_messages').getElementsByTagName('div')[0].innerHTML=' '+numberOfNewMessages+' ';
		GM_setValue('numberOfNewMessages'+GCAO_lang+'_'+GCAO_server, numberOfNewMessages);
		var notReadMessages=numberOfNewMessages;
		var messageUrl=document.getElementById('menue_messages').getAttribute('href').replace('index.php?','');
		GM_xmlhttpRequest({
			method: "GET",
			url: GCAO_siteurl + messageUrl,
			onload: function(response){
				response.responseText=response.responseText.substring(response.responseText.indexOf('<form action="index.php?mod=messages'),response.responseText.indexOf('<td colspan="3" style="padding-top: 10px; border-top: 3px double #b28b60;">'));
				response.responseText=response.responseText.replace(/type="checkbox"/gi,'type="hidden"').replace(/width="30px"/gi,'width="0px"').replace(/width="30%"/gi,'width="20px" style="padding-right:30px;"');
				var messages = response.responseText.split(/<tr class="alt">/g);
				document.getElementById('menue_messages').innerHTML+=' <img src="'+img_exclamation+'" style="position:absolute;margin-'+GCAO_left+':-20px;margin-top:19px;opacity: 0.65;" onmouseover="if(document.getElementById(\'warningMessage\').style.display!=\'block\'){this.style.opacity=\'1\';document.getElementById(\'warningMessage\').style.display=\'block\';}else{this.style.opacity=\'0.65\';document.getElementById(\'warningMessage\').style.display=\'none\';}">';
				var warningTip = document.createElement('div');
				warningTip.setAttribute('id', 'warningMessage');
				warningTip.setAttribute('style', 'opacity: 0.75;display:none;z-index:502;position:absolute;top:85px;'+GCAO_left+':255px;border:1px solid grey;background-color:black;color:#c0c0c0;font-weight:bold;line-height:24px;padding-left:5px;padding-right:5px;')
				document.getElementById('header_game').appendChild(warningTip);
					
				var messagesToShow = "<style>.tdn{padding-top:10px;border-bottom:1px dotted #ffffff}</style>";
				var i =1;
				while((numberOfNewMessages>1)&&(i<26)&&(i<=notReadMessages)){
					if(messages[i]){
						messagesToShow += '<tr>'+messages[i];
					}
					numberOfNewMessages--;
					numberOfNewMessages--;
					i++;
				}
				
				if(numberOfNewMessages==1){
					messagesToShow += '<tr>'+messages[i].split('</tr>')[0]+'</tr>';
				}
				
				warningTip.innerHTML += '<table>'+messagesToShow.replace(/<tr/g,'<tr style="text-align:left"')+'</table>';
			}
		});
	}else{
		var numberOfNewMessages=GM_getValue('numberOfNewMessages'+GCAO_lang+'_'+GCAO_server, 0);
		if(numberOfNewMessages!=0){
			document.getElementById('menue_messages').setAttribute('class','menue_messages_highlight');
			document.getElementById('menue_messages').innerHTML='<div class="menue_new_count"> '+numberOfNewMessages+' </div>';
		}
	}
}

//################################################################################################################################
//## GENERATE IMAGE
//################################################################################################################################
function generateImage(){
	//Save player's id
	var playersId=document.getElementById('content').innerHTML.match(/c.php.uid=(\d+)/i)[1];
	GM_setValue('playersId_'+GCAO_server+'_'+GCAO_lang, playersId);

	if(!document.location.href.match(/doll=[3-6]/i)){
		var code=document.getElementById('content').innerHTML;
		if(code.match(/class="playername_achievement">([^<]+)</i)){
			var name=code.match(/class="playername_achievement">([^<]+)</i)[1];
		}else if(code.match(/<div class="playername">([^<]+)</i)){
			var name=code.match(/<div class="playername">([^<]+)</i)[1];
		}else{
			var name='Name_was_not_found';
		}
		var level=document.getElementById('char_level').innerHTML;
		var score=document.getElementById('header_values_ressources').getElementsByTagName('div')[5].innerHTML;
		code=document.getElementById('icon_highscore').getAttribute('onmouseover');
		var honor=code.match(/nowrap..>([^<]+)<.td>/gi)[2].replace('nowrap\\\'>','').replace('</td>','');
		var fame=code.match(/nowrap..>([^<]+)<.td>/gi)[4].replace('nowrap\\\'>','').replace('</td>','');
		var players_image=GM_getValue('PlayerImage' + window.location.host, '').replace(/\//g,'\\');
		//http://localhost/epiratiko/
		//code='http://apo.users.uth.gr/gca/signatures/signature_generator.php?&n='+name+'&l='+level+'&h='+score+'&t='+honor+'&f='+fame+'&s=s'+GCAO_server+'-'+GCAO_lang+'&i=';
		code='http://apo.users.uth.gr/gca/signatures/signature_generator.php?'+name+'*'+level+'*'+score+'*'+honor+'*'+fame+'*'+GCAO_server+'-'+GCAO_lang+'*'+players_image+'*';
		var imageDiv = document.createElement('div');
		imageDiv.setAttribute('class','contentItem');
		var tranDot='%3D%3D';
		
		if(!navigator.userAgent.toLowerCase().match(/firefox/i)){
			imageDiv.innerHTML = '<img src="'+tranDot+'" style="position:absolute;width:550px;height:300px;margin-top:118px;">'+
			'<h3>'+L_titleGenerate+'</h3><div class="contentItem_content">'+L_clickToGenerate+
			'<br><br><center id="imageBox">'+
			'<select size="1" name="imageStyle" class="input" id="imageStyle">'+
			'<option value="1" selected="selected">Simple Gladiator</option>'+
			'<option value="2">Red Banner</option>'+
			'<option value="3">GCA Fan Userbar Monsters</option>'+
			'<option value="4">GCA Fan Userbar Wolf</option>'+
			'<option value="5">GCA Fan Userbar Gladiator</option>'+
			'<option value="6">GCA Fan Userbar Gladiator 2</option>'+
			'<option value="7">GCA Big Fan Userbar</option>'+
			'</select>'+
			'<input class="button2" style="margin-'+GCAO_left+':10px;" type="button" value="'+L_generate+'" onclick="this.style.display=\'none\';document.getElementById(\'SaveOnline\').style.display=\'block\';document.getElementById(\'imageStyle\').style.display=\'none\';var noIS=document.getElementById(\'imageStyle\').value;var image=document.createElement(\'img\');image.setAttribute(\'src\',\''+code+'\'+noIS);document.getElementById(\'imgHere\').appendChild(image);document.getElementById(\'code\').value=\''+code+'\'+noIS;document.getElementById(\'url\').value=\''+code+'\'+noIS;">'+
			'<input type="hidden" id="code" value=""> '+
			'<form target="_blank" method="post" action="http://www.imageshack.us/transload.php" style="display:none;" id="SaveOnline">'+
			'<input type="hidden" id="url" value="" name="url">'+
			'<input type="submit" value="'+L_saveOnline+'" class="button1">'+
			'</form>'+
			'<br/>'+
			'<span id="imgHere"></span>'+
			'</center>'+
			'</div>';
			document.getElementById('content').appendChild(imageDiv);
		}else{
			imageDiv.innerHTML = '<img src="'+tranDot+'" style="position:absolute;width:550px;height:300px;margin-top:118px;">'+
			'<h3>'+L_titleGenerate+'</h3><div class="contentItem_content">'+L_clickToGenerate+
			'<br><br><center id="imageBox">'+
			'<select size="1" name="imageStyle" class="input" id="imageStyle">'+
			'<option value="1" selected="selected">Simple Gladiator</option>'+
			'<option value="2">Red Banner</option>'+
			'<option value="3">GCA Fan Userbar Monsters</option>'+
			'<option value="4">GCA Fan Userbar Wolf</option>'+
			'<option value="5">GCA Fan Userbar Gladiator</option>'+
			'<option value="6">GCA Fan Userbar Gladiator 2</option>'+
			'<option value="7">GCA Big Fan Userbar</option>'+
			'</select>'+
			'<input class="button2" style="margin-'+GCAO_left+':10px;" type="button" value="'+L_generate+'" onclick="this.style.display=\'none\';document.getElementById(\'SaveOnline\').style.display=\'block\';document.getElementById(\'imageStyle\').style.display=\'none\';var noIS=document.getElementById(\'imageStyle\').value;var image=document.createElement(\'img\');image.setAttribute(\'src\',\''+code+'\'+noIS);document.getElementById(\'imageBox\').appendChild(image);document.getElementById(\'code\').value=\''+code+'\'+noIS;">'+
			'<input type="hidden" id="code" value=""> '+
			'<input type="submit" id="SaveOnline" value="'+L_saveOnline+'" class="button1" style="display:none;">'+
			'<span id="GenResults" style="display:none;"></span><br/>'+
			'</center>'+
			'</div>';
			document.getElementById('content').appendChild(imageDiv);
			document.getElementById("SaveOnline").addEventListener("click", saveImageOnline, false);
		}
	}
}

function saveImageOnline(){
	document.getElementById('GenResults').innerHTML='<b>'+L_uploadingImage+'...</b><br/>';
	document.getElementById('SaveOnline').style.display='none';
	document.getElementById('GenResults').style.display='block';
	var code=document.getElementById('code').value;
	var givedata='url='+encodeURIComponent(code);
	GM_xmlhttpRequest
	({
		method: 'POST',
		url: 'http://www.imageshack.us/transload.php',
		headers: {
			'Host': 'imageshack.us',
			'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; el; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
			'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
			'Accept-Language': 'el-gr,el;q=0.8,en-us;q=0.5,en;q=0.3',
			'Accept-Encoding': 'gzip,deflate',
			'Accept-Charset': 'ISO-8859-7,utf-8;q=0.7,*;q=0.7',
			'Keep-Alive': '115',
			'Connection': 'keep-alive',
			'Referer': 'http://www.imageshack.us/',
			'Content-Type': 'application/x-www-form-urlencoded'
		},
		data : givedata,
		onload: function(response){
			document.getElementById('GenResults').innerHTML='<b>'+L_searchUrl+'...</b><br/>';
			if(response.responseText.match(/onDoubleClick..return false...readonly..readonly..class..readonly..value..([^"]+)/i)){
				var url=response.responseText.match(/onDoubleClick..return false...readonly..readonly..class..readonly..value..([^"]+)/i)[1];
				document.getElementById('GenResults').innerHTML='<b>'+L_imageUrl+': <font color="green">'+url+'</font></b><br/>';
			}else{
				document.getElementById('GenResults').innerHTML='<b><font color="red">'+L_imageNotFound+'</font></b><br/>';
			}
		}
	});
}

//################################################################################################################################
//## MANAGE MERCENARIES
//################################################################################################################################
function manageMerchants(){
	if(document.location.href.match(/doll=[2-6]/i) && document.getElementById('task1')){
		//var GCAO_siteurl='index.php?';
		document.getElementsByTagName('h3')[0].parentNode.setAttribute('style','display:none');
		document.getElementsByTagName('h3')[1].parentNode.setAttribute('style','display:none');
		
		var task1=document.getElementById('task1').getAttribute('onmouseover').match(/nowrap\\'>([^<]+)<\/td><\/tr><\/table>/i)[1];
		var task2=document.getElementById('task2').getAttribute('onmouseover').match(/nowrap\\'>([^<]+)<\/td><\/tr><\/table>/i)[1];
		var task3=document.getElementById('task3').getAttribute('onmouseover').match(/nowrap\\'>([^<]+)<\/td><\/tr><\/table>/i)[1];
		var imgurl=GCAO_siteurl.replace('index.php?','');
		
		if(document.getElementById('char').innerHTML.match(/nowrap=\\'nowrap\\'>([^<]+)<br \/><font style=font-size:smaller/gi)){
			var code=document.getElementById('char').innerHTML.match(/nowrap=\\'nowrap\\'>([^<]+)<br \/><font style=font-size:smaller/gi);
		}else{
			var code=false;
		}
			if(code[1]){var name2=code[1].match(/\\'>([^<]+)<br/i)[1];}else{var name2='-';}
			if(code[2]){var name3=code[2].match(/\\'>([^<]+)<br/i)[1];}else{var name3='-';}
			if(code[3]){var name4=code[3].match(/\\'>([^<]+)<br/i)[1];}else{var name4='-';}
			if(code[4]){var name5=code[4].match(/\\'>([^<]+)<br/i)[1];}else{var name5='-';}
		
		var todo=new Array(1)
		var num=new Array(1);
		if(navigator.userAgent.toLowerCase().match(/chrome/i)){var code=document.getElementById('char').innerHTML.match(/colspan=.'2.' nowrap=.'nowrap.'&gt;([^&]+)&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;/gi);}
		else{var code=document.getElementById('char').innerHTML.match(/color:#DDDDDD>([^<]+)<\/font><\/td>/gi);}
		
		var x=1;
		while(x<=5){
			if(code[x-1]){
				if(navigator.userAgent.toLowerCase().match(/chrome/i)){
					todo[x]=code[x-1].match(/nowrap=.'nowrap.'&gt;([^&]+)&lt;\/td&gt;/i)[1];
				}else{
					todo[x]=code[x-1].match(/DD>([^<]+)</i)[1];
				}
				if(todo[x].match(task1)){num[x]=1;}
				else if(todo[x].match(task2)){num[x]=2;}
				else if(todo[x].match(task3)){num[x]=3;}
				else{num[x]=4;}
			}else{
				num[x]=4;
			}
			x++
		}
		
		var changeImage2=';document.getElementById(\'imMer2\').setAttribute(\'src\',this.getAttribute(\'src\').replace(\'inact\',\'act\'))';
		var changeImage3=';document.getElementById(\'imMer3\').setAttribute(\'src\',this.getAttribute(\'src\').replace(\'inact\',\'act\'))';
		var changeImage4=';document.getElementById(\'imMer4\').setAttribute(\'src\',this.getAttribute(\'src\').replace(\'inact\',\'act\'))';
		var changeImage5=';document.getElementById(\'imMer5\').setAttribute(\'src\',this.getAttribute(\'src\').replace(\'inact\',\'act\'))';
		var changeImage6=';document.getElementById(\'imMer6\').setAttribute(\'src\',this.getAttribute(\'src\').replace(\'inact\',\'act\'))';
		var manageDiv = document.createElement('div');
		
		if(Get_Cookie('playerName')){
			var L_myPlayer=Get_Cookie('playerName');
		}else{
			var L_myPlayer='My Player';
		}
		
		var L_damage=document.getElementById('char_schaden_tt').getElementsByTagName('span')[0].innerHTML;
		var L_heal=document.getElementById('char_healing_tt').getElementsByTagName('span')[0].innerHTML;
		manageDiv.setAttribute('class','contentItem');
		manageDiv.setAttribute('style','margin-top:10px;');
		manageDiv.innerHTML = '<h3>'+L_ManageMercenaries+'</h3><div class="contentItem_content">'+
		'<table width="100%" align="center"><tbody>'+
		'<tr style="background-color:#c1b08e;color:#473a21;"><th>'+L_name+'</th><th></th><th>'+L_protect+'</th><th>'+L_damage+'</th><th>'+L_heal+'</th><th>'+L_leave+'</th><th>'+L_selected+'</th></tr>'+
		'<tr><th><i>'+L_myPlayer+'<i></th><th>:</th><th><img src="'+imgurl+'img/interface/task_1_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'2\', \'1\')'+changeImage2+'"></th><th><img src="'+imgurl+'img/interface/task_2_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'2\', \'2\')'+changeImage2+'"></th><th><img src="'+imgurl+'img/interface/task_3_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'2\', \'3\')'+changeImage2+'"></th><th></th><th><img id="imMer2" src="'+imgurl+'img/interface/task_'+num[1]+'_active.gif" align="absmiddle"/></th></tr>'+
		'<tr><th><i>'+name2+'<i></th><th>:</th><th><img src="'+imgurl+'img/interface/task_1_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'3\', \'1\')'+changeImage3+'"></th><th><img src="'+imgurl+'img/interface/task_2_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'3\', \'2\')'+changeImage3+'"></th><th><img src="'+imgurl+'img/interface/task_3_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'3\', \'3\')'+changeImage3+'"></th><th><img src="'+imgurl+'img/interface/task_4_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'3\', \'4\')'+changeImage3+'"></th><th><img id="imMer3" src="'+imgurl+'img/interface/task_'+num[2]+'_active.gif" align="absmiddle"/></th></tr>'+
		'<tr><th><i>'+name3+'<i></th><th>:</th><th><img src="'+imgurl+'img/interface/task_1_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'4\', \'1\')'+changeImage4+'"></th><th><img src="'+imgurl+'img/interface/task_2_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'4\', \'2\')'+changeImage4+'"></th><th><img src="'+imgurl+'img/interface/task_3_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'4\', \'3\')'+changeImage4+'"></th><th><img src="'+imgurl+'img/interface/task_4_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'4\', \'4\')'+changeImage4+'"></th><th><img id="imMer4" src="'+imgurl+'img/interface/task_'+num[3]+'_active.gif" align="absmiddle"/></th></tr>'+
		'<tr><th><i>'+name4+'<i></th><th>:</th><th><img src="'+imgurl+'img/interface/task_1_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'5\', \'1\')'+changeImage5+'"></th><th><img src="'+imgurl+'img/interface/task_2_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'5\', \'2\')'+changeImage5+'"></th><th><img src="'+imgurl+'img/interface/task_3_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'5\', \'3\')'+changeImage5+'"></th><th><img src="'+imgurl+'img/interface/task_4_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'5\', \'4\')'+changeImage5+'"></th><th><img id="imMer5" src="'+imgurl+'img/interface/task_'+num[4]+'_active.gif" align="absmiddle"/></th></tr>'+
		'<tr><th><i>'+name5+'<i></th><th>:</th><th><img src="'+imgurl+'img/interface/task_1_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'6\', \'1\')'+changeImage6+'"></th><th><img src="'+imgurl+'img/interface/task_2_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'6\', \'2\')'+changeImage6+'"></th><th><img src="'+imgurl+'img/interface/task_3_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'6\', \'3\')'+changeImage6+'"></th><th><img src="'+imgurl+'img/interface/task_4_inactive.gif" align="absmiddle" style="cursor:pointer;" onclick="selectTask(\'6\', \'4\')'+changeImage6+'"></th><th><img id="imMer6" src="'+imgurl+'img/interface/task_'+num[5]+'_active.gif" align="absmiddle"/></th></tr>'+
		'</tbody></table></div>';
		document.getElementById('content').appendChild(manageDiv);
	}
}

//################################################################################################################################
//## ARENA CHANGES
//################################################################################################################################
function arenaChanges(){
	if(document.getElementById('ujn')){
		var clearButton = '<div id="Clear" style="background-image: url(' + img_clear + ');background-position: 0px 0px;position:absolute;margin-top:-24px;margin-'+GCAO_left+':335px;width:22px;height:22px;" onmouseover="document.getElementById(\'Clear\').setAttribute(\'style\',\'background-image: url(' + img_clear + ');background-position: 22px 0px;position:absolute;margin-top:-24px;margin-'+GCAO_left+':335px;width:22px;height:22px;\')" onmouseout="document.getElementById(\'Clear\').setAttribute(\'style\',\'background-image: url(' + img_clear + ');background-position: 0px 0px;position:absolute;margin-top:-24px;margin-'+GCAO_left+':335px;width:22px;height:22px;\')" onclick="document.getElementById(\'ujn\').value=\'\'" title="Clear"></div>';
		document.getElementById('ujn').parentNode.innerHTML+=clearButton;
	}
}

//################################################################################################################################
//## FAT LIFE
//################################################################################################################################
function FatLife(){
	document.getElementById('header_values_hp').setAttribute('style','z-index:12;margin-top:15px;');
	document.getElementById('header_values_xp').setAttribute('style','z-index:12;margin-top:30px;');
	var life=document.getElementById('header_values_hp_bar').getAttribute('onmouseover').match(/>(\d+ \/ \d+)</i)[1];
	var exp=document.getElementById('header_values_xp_bar').getAttribute('onmouseover').match(/>(\d+ \/ \d+)</i)[1];
	var l1=life.match(/(\d+)/gi)[0]*1;
	var l2=life.match(/(\d+)/gi)[1]*1;
	var e1=exp.match(/(\d+)/gi)[0]*1;
	var e2=exp.match(/(\d+)/gi)[1]*1;
	//var img_backbar = '';
	var img_backbar='%3D';
	var BgImageFix = document.createElement('img');
	BgImageFix.setAttribute('id', 'BgImageFix');
	BgImageFix.setAttribute('src', img_backbar);
	if(GCAO_left=='right'){var number=334;}else{var number=335;}
	BgImageFix.setAttribute('style', 'position:absolute;z-index:1;top:81px;'+GCAO_left+':'+number+'px;'+invert_image_code);
	document.getElementById('header_game').appendChild(BgImageFix);
	
	var BgImageFix = document.createElement('div');
	BgImageFix.setAttribute('style', 'position:absolute;');
	BgImageFix.innerHTML='<div style="position:absolute;z-index:11;margin-'+GCAO_left+':235px;color:#C7B68A;margin-top:60px;width:80px;"><font size="2">'+l1+'</font> / '+l2+'</div><div style="position:absolute;z-index:11;margin-'+GCAO_left+':235px;color:#C7B68A;margin-top:85px;width:80px;"><font size="2">'+e1+'</font> / '+e2+'</div>';
	document.getElementById('header_game').appendChild(BgImageFix);
	
}

//################################################################################################################################
//## ALERT FOR FIGHT WHEN READY (BETA)
//################################################################################################################################
function alertForFightWhenReady(){

	var a1=doc.getElementById('cooldown_bar_text_expedition').innerHTML;
	var a2=doc.getElementById('cooldown_bar_text_dungeon').innerHTML;
	var a3=doc.getElementById('cooldown_bar_text_arena').innerHTML;
	var a4=doc.getElementById('cooldown_bar_text_ct').innerHTML;
	var z1=0;var z2=0;var z3=0;var z4=0;
	if(a1.match(/:/i)){
		z1=alertForFightWhenReadyCounter(a1);
	}
	if(a2.match(/:/i)){
		z2=alertForFightWhenReadyCounter(a2);
	}
	if(a3.match(/:/i)){
		z3=alertForFightWhenReadyCounter(a3);
	}
	if(a4.match(/:/i)){
		z4=alertForFightWhenReadyCounter(a4);
	}
	alertForFightWhenReadyInject(z1,z2,z3,z4);
}

function alertForFightWhenReadyCounter(a){
	var x=a.match(/:(\d+):/i)[1];
	var y=a.match(/:\d+:(\d+)/i)[1];
	z=(x*60*1000)+(y*1000)-1000;
	return z;
}

function alertForFightWhenReadyInject(z1,z2,z3,z4){
	var s='var L_Redirect_Q="'+L_Redirect_Q+'";\n';
	if(z1>0){
		var link=document.getElementById('cooldown_bar_expedition').getElementsByTagName('a')[0].getAttribute('href');
		s+='confirmTimer1=setTimeout("InjectAlertForFightWhenReady(\''+L_ReadyFor_expedition+'\',\\"'+GCAO_siteurl.replace('index.php?','')+link+'\\")",'+z1+');\n';
	}else{s+='confirmTimer1=setTimeout("",1);\n'}
	if(z2>0){
		var link=document.getElementById('cooldown_bar_dungeon').getElementsByTagName('a')[0].getAttribute('href');
		s+='confirmTimer2=setTimeout("InjectAlertForFightWhenReady(\''+L_ReadyFor_dungeon+'\',\\"'+GCAO_siteurl.replace('index.php?','')+link+'\\")",'+z2+');\n';
	}else{s+='confirmTimer2=setTimeout("",1);\n'}
	if(z3>0){
		var link=document.getElementById('cooldown_bar_arena').getElementsByTagName('a')[0].getAttribute('href');
		s+='confirmTimer3=setTimeout("InjectAlertForFightWhenReady(\''+L_ReadyFor_arena+'\',\\"'+GCAO_siteurl.replace('index.php?','')+link+'\\")",'+z3+');\n';
	}else{s+='confirmTimer3=setTimeout("",1);\n'}
	if(z4>0){
		var link=document.getElementById('cooldown_bar_ct').getElementsByTagName('a')[0].getAttribute('href');
		s+='confirmTimer4=setTimeout("InjectAlertForFightWhenReady(\''+L_ReadyFor_ct+'\',\\"'+GCAO_siteurl.replace('index.php?','')+link+'\\")",'+z4+');\n';
	}else{s+='confirmTimer4=setTimeout("",1);\n'}
	
	var newScript=doc.createElement('script');
	newScript.innerHTML=s+InjectAlertForFightWhenReady;
	doc.body.appendChild(newScript);
}

function InjectAlertForFightWhenReady(x,y){
	clearTimeout(confirmTimer1);
	clearTimeout(confirmTimer2);
	clearTimeout(confirmTimer3);
	clearTimeout(confirmTimer4);
	var a=false;
	var b=true;
	
	if(a==true){
		var makeSoundDiv=document.createElement('div');
		makeSoundDiv.id="SoundDiv";
		makeSoundDiv.setAttribute('style',"position:absolute;top:-20000px;left:-20000px;");
		document.body.appendChild(makeSoundDiv);
	
		var makeSound=document.createElement('object');
		makeSound.setAttribute('classid','clsid:D27CDB6E-AE6D-11cf-96B8-444553540000');
		makeSound.setAttribute('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0');
		makeSound.setAttribute('width','165');
		makeSound.setAttribute('height','38');
		makeSound.setAttribute('id','niftyPlayer1');
		makeSound.setAttribute('align','');
		makeSound.innerHTML='<param name=movie value="http://www.varal.org/media/niftyplayer/niftyplayer.swf?file=http://www.oringz.com/oringz-uploads/sounds-835-good.mp3&as=1">'+
			'<param name=quality value=high>'+
			'<param name=bgcolor value=#FFFFFF>'+
			'<embed src="http://www.varal.org/media/niftyplayer/niftyplayer.swf?file=http://www.oringz.com/oringz-uploads/sounds-835-good.mp3&as=1" quality=high bgcolor=#FFFFFF width="165" height="38" name="niftyPlayer1" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'+
			'</embed>';
		document.getElementById('SoundDiv').appendChild(makeSound);
	}
	
	if(b==true){
		var r=confirm(x+"\n"+L_Redirect_Q);
		if (r==true){document.location.href=y;}
	}
}

//################################################################################################################################
//## EASY LINKS
//################################################################################################################################
function easyLinks(){
	if(doc.getElementById('submenu1')){
		gladiatusAdditionalMenuLinks({
			name:"Market",
			target: doc.getElementById('submenu1').getElementsByTagName('a')[10],
			safe: /market/i,
			link1: "index.php?mod=market&sh="+GCAO_secureCode+"&f=7&s=p", link1c: '<img src="img/item/7_2.gif" width="22px"/>',
			link2: "index.php?mod=market&sh="+GCAO_secureCode+"&f=11&s=p", link2c: '<img src="img/item/11_2.gif" width="22px"/>',
			link3: "index.php?mod=market&sh="+GCAO_secureCode+"&f=12&s=p", link3c: '<img src="img/item/12_4.gif" width="22px"/>',
			link4: "index.php?mod=market&sh="+GCAO_secureCode+"&s=p", link4c: '<img src="img/ui/icon_gold.gif" style="margin-top:2px;"/>',
			link5: "index.php?mod=market&sh="+GCAO_secureCode+"&s=ld", link5c: '<img src="img/ui/icon_level.gif" style="margin-top:2px;"/>'
		});
		
		gladiatusAdditionalMenuLinks({
			name:"Auction",
			target: doc.getElementById('submenu1').getElementsByTagName('a')[9],
			safe: /auction/i,
			link: "index.php?mod=auction&ttype=3&sh="+GCAO_secureCode
		});
		
		gladiatusAdditionalMenuLinks({
			name:"Arena",
			target: doc.getElementById('submenu1').getElementsByTagName('a')[1],
			safe: /arena/i,
			link: "index.php?mod=arena&submod=grouparena&sh="+GCAO_secureCode
		});
	}
	
	gladiatusAdditionalMenuLinks({
		name:"Guild",
		target: doc.getElementById('mainmenu').getElementsByTagName('a')[2],
		safe: /guild/i,
		link1: "index.php?mod=guild&sh="+GCAO_secureCode, link1c: '<img src="" width="21px"/>',
		link2: "index.php?mod=guild&submod=admin&sh="+GCAO_secureCode, link2c: '<img src=""/>',
		link3: "index.php?mod=guild&submod=buildings&sh="+GCAO_secureCode, link3c: '<img src="" width="17px" style="margin-top:2px;"/>',
		link4: "index.php?mod=guildBankingHouse&sh="+GCAO_secureCode, link4c: '<img src="img/ui/icon_gold.gif" style="margin-top:2px;"/>',
		link5: "index.php?mod=guild_jail&sh="+GCAO_secureCode, link5c: '<img src=""/>',
		link6: "index.php?mod=guild_medic&sh="+GCAO_secureCode, link6c: '<img src=""/>'
	});
	
	gladiatusAdditionalMenuLinks({
		name:"Quests",
		target: doc.getElementById('mainmenu').getElementsByTagName('a')[1],
		safe: /quests/i,
		link: "index.php?mod=gods&sh="+GCAO_secureCode
	});
	
	gladiatusAdditionalMenuLinks({
		name:"overview",
		target: doc.getElementById('mainmenu').getElementsByTagName('a')[0],
		safe: /overview/i,
		link1: "index.php?mod=overview&submod=achievements&sh="+GCAO_secureCode, link1c: '<img src="img/ui/icon_highscore.gif" style="margin-top:2px;"/>',
		link2: "index.php?mod=overview&doll=2&sh="+GCAO_secureCode, link2c: '<img src="img/interface/doll2_active.gif" width="21px"/>',
		link3: "index.php?mod=overview&doll=3&sh="+GCAO_secureCode, link3c: '<img src="img/interface/doll3_active.gif" width="21px"/>',
		link4: "index.php?mod=overview&doll=4&sh="+GCAO_secureCode, link4c: '<img src="img/interface/doll4_active.gif" width="21px"/>',
		link5: "index.php?mod=overview&doll=5&sh="+GCAO_secureCode, link5c: '<img src="img/interface/doll5_active.gif" width="21px"/>',
		link6: "index.php?mod=overview&doll=6&sh="+GCAO_secureCode, link6c: '<img src="img/interface/doll6_active.gif" width="21px"/>'
	});
}

function gladiatusAdditionalMenuLinks(x){
	//Must be filled down to up
	invert_image_code='';
	if(x.target && x.target.getAttribute('href').match(x.safe)){
		if(x.target.parentNode.getAttribute('id')!='mainmenu'){
			var y=''+
			'#Easy'+x.name+'Links{'+GCAO_right+':15px;width:146px;height:27px;position:absolute;}'+
			'#plusEasy'+x.name+'{cursor:pointer;width:15px;padding-top:4px;height:23px;margin:0px;border:0px;display:block;text-align:center;float:'+GCAO_right+';'+
			invert_image_code+"background:transparent url('');}"+
			"#plusEasy"+x.name+":hover, #plusEasyOn"+x.name+"{background:transparent url('');}"+
			"#"+x.name+"RealLink{"+invert_image_code+"background:transparent url('');}"+
			"#"+x.name+"RealLinkC, #"+x.name+"RealLink:hover{"+invert_image_code+"background:transparent url('');}"+
			".linkEasy"+x.name+"{width:29px;height:24px;padding-top:3px;margin:0px;border:0px;display:block;text-align:center;float:"+GCAO_left+";"+invert_image_code+"background:transparent url('');}"+
			".linkEasy"+x.name+":hover{"+invert_image_code+"background:transparent url('');}"+
			'';
		}else{
			var y=''+
			'#Easy'+x.name+'Links{'+GCAO_right+':12px;width:168px;height:27px;position:absolute;}'+
			'#plusEasy'+x.name+'{cursor:pointer;width:15px;padding-top:4px;height:23px;margin:0px;border:0px;display:block;text-align:center;float:'+GCAO_right+';'+
			invert_image_code+"background:transparent url('');}"+
			"#plusEasy"+x.name+":hover, #plusEasyOn"+x.name+"{background:transparent url('');}"+
			"#"+x.name+"RealLinkA{"+invert_image_code+"background:transparent url('');}"+
			"#"+x.name+"RealLinkAC, #"+x.name+"RealLinkA:hover{"+invert_image_code+"background:transparent url('');}"+
			".linkEasy"+x.name+"{width:27px;height:24px;padding-top:3px;margin:0px;border:0px;display:block;text-align:center;float:"+GCAO_left+";"+invert_image_code+"background:transparent url('');}"+
			".linkEasy"+x.name+":hover{"+invert_image_code+"background:transparent url('');}"+
			'';
		}

		var newdiv=doc.createElement('div');
		newdiv.innerHTML='<style>'+y+'</style>';
		doc.body.appendChild(newdiv);
		
		if(x.link1){
			if(x.target.parentNode.getAttribute('id')!='mainmenu'){var y=''}else{var y='<a href="'+x.link6+'" class="linkEasy'+x.name+'" style="width:28px;">'+x.link6c+'</a></span>';}
			var code='<span id="Easy'+x.name+'Links" style="display:none;">'+
			'<a href="'+x.link1+'" class="linkEasy'+x.name+'">'+x.link1c+'</a>'+
			'<a href="'+x.link2+'" class="linkEasy'+x.name+'">'+x.link2c+'</a>'+
			'<a href="'+x.link3+'" class="linkEasy'+x.name+'">'+x.link3c+'</a>'+
			'<a href="'+x.link4+'" class="linkEasy'+x.name+'">'+x.link4c+'</a>'+
			'<a href="'+x.link5+'" class="linkEasy'+x.name+'">'+x.link5c+'</a>'+y+'</span>'+
			'<a id="plusEasy'+x.name+'" onclick="if(document.getElementById(\'Easy'+x.name+'Links\').style.display==\'none\'){document.getElementById(\'Easy'+x.name+'Links\').style.display=\'inline\';}else{document.getElementById(\'Easy'+x.name+'Links\').style.display=\'none\';}">+</a>';
		}else if(x.link){
			var code='<a id="plusEasy'+x.name+'" href="'+x.link+'">+</a>';
		}else{code='';}
		
		if(x.target.parentNode.getAttribute('id')!='mainmenu'){y=27;}else{y=29;}
		var newdiv=doc.createElement('div');
		newdiv.setAttribute('style','float:'+GCAO_right+';margin-top:-'+y+'px;margin-'+GCAO_right+':8px;width:15px;position:relative;');
		newdiv.setAttribute('id','Easy'+x.name);
		newdiv.innerHTML=code;
		x.target.parentNode.insertBefore(newdiv,x.target.nextSibling);
		
		if(x.target.parentNode.getAttribute('id')!='mainmenu'){
			x.target.setAttribute('id',x.name+"RealLink");
			if(x.target.getAttribute('class')=='submenuitem_aktive'){
				x.target.setAttribute('id',x.name+"RealLinkC");
			}
		}else{
			x.target.setAttribute('id',x.name+"RealLinkA");
			if(x.target.getAttribute('class')=='menuitem_aktive'){
				x.target.setAttribute('id',x.name+"RealLinkAC");
			}
		}
	}
}

//################################################################################################################################
//## NEW QUEST AVAILABLE
//################################################################################################################################
function saveNewQuestTime(){
	if(document.getElementById('quest_header_accepted')){
		var ntime=day.getTime().toString();
		if(document.getElementById('ticker1')){
			var dtime=document.getElementById('ticker1').innerHTML;
			
			GM_setValue('QTimer_dtime_'+GCAO_lang+'_'+GCAO_server, dtime);
			GM_setValue('QTimer_ntime_'+GCAO_lang+'_'+GCAO_server, ntime);
		}else{
			GM_setValue('QTimer_ntime_'+GCAO_lang+'_'+GCAO_server, -1);
		}
		
		var takenQuests=document.getElementById('quest_header_accepted').innerHTML.match(/(\d) \/ (\d)/i)[1];
		if(document.getElementById('content').innerHTML.match(/quest_slot_button quest_slot_button_finish/gi)){
			var doneMissions=document.getElementById('content').innerHTML.match(/quest_slot_button quest_slot_button_finish/gi).length;
		}else{var doneMissions=0;}
		if(document.getElementById('content').innerHTML.match(/quest_slot_button quest_slot_button_restart/gi)){
			var failMissions=document.getElementById('content').innerHTML.match(/quest_slot_button quest_slot_button_restart/gi).length;
		}else{var failMissions=0;}
		//Inactive
		if(document.getElementById('content').innerHTML.match(/icon_work_inactive.jpg/gi)){
			var workMissions=document.getElementById('content').innerHTML.match(/icon_work_inactive.jpg/gi).length;
		}else{var workMissions=0;}
		if(document.getElementById('content').innerHTML.match(/icon_dungeon_inactive.jpg/gi)){
			var dungeonMissions=document.getElementById('content').innerHTML.match(/icon_dungeon_inactive.jpg/gi).length;
		}else{var dungeonMissions=0;}
		if(document.getElementById('content').innerHTML.match(/icon_combat_inactive.jpg/gi)){
			var combatMissions=document.getElementById('content').innerHTML.match(/icon_combat_inactive.jpg/gi).length;
		}else{var combatMissions=0;}
		if(document.getElementById('content').innerHTML.match(/icon_grouparena_inactive.jpg/gi)){
			var grouparenaMissions=document.getElementById('content').innerHTML.match(/icon_grouparena_inactive.jpg/gi).length;
		}else{var grouparenaMissions=0;}
		if(document.getElementById('content').innerHTML.match(/icon_expedition_inactive.jpg/gi)){
			var expeditionMissions=document.getElementById('content').innerHTML.match(/icon_expedition_inactive.jpg/gi).length;
		}else{var expeditionMissions=0;}
		if(document.getElementById('content').innerHTML.match(/icon_arena_inactive.jpg/gi)){
			var arenaMissions=document.getElementById('content').innerHTML.match(/icon_arena_inactive.jpg/gi).length;
		}else{var arenaMissions=0;}
		if(document.getElementById('content').innerHTML.match(/icon_items_inactive.jpg/gi)){
			var itemsMissions=document.getElementById('content').innerHTML.match(/icon_items_inactive.jpg/gi).length;
		}else{var itemsMissions=0;}
		
		var QTimer1=takenQuests+'_'+doneMissions+'_'+failMissions+'_'+ntime;
		var QTimer2=workMissions+'_'+dungeonMissions+'_'+combatMissions+'_'+grouparenaMissions+'_'+expeditionMissions+'_'+arenaMissions+'_'+itemsMissions;
		GM_setValue('QTimer_taken_compl_fail_update_'+GCAO_lang+'_'+GCAO_server, QTimer1);
		GM_setValue('QTimer_work_dungeon_combat_grouparena_expedition_arena_items_'+GCAO_lang+'_'+GCAO_server, QTimer2);
	}
}

function newQuest(){
	if(document.getElementById('mainmenu').getElementsByTagName('a')[1]){
		var dtime=GM_getValue('QTimer_dtime_'+GCAO_lang+'_'+GCAO_server, '0:0:0');
		var ptime=GM_getValue('QTimer_ntime_'+GCAO_lang+'_'+GCAO_server, 0);
		ptime=parseInt(ptime);
		var ntime=day.getTime();
		
		document.getElementById('mainmenu').getElementsByTagName('a')[1].innerHTML+='<font id="QuestTime" style="margin-'+GCAO_left+':5px;" weight="bold">(??:??)</font>';
		
		var myQuests=GM_getValue('QTimer_taken_compl_fail_update_'+GCAO_lang+'_'+GCAO_server, '0_0_0_0');
		var qtaken=myQuests.match(/(\d+)/gi)[0];
		var qcompl=myQuests.match(/(\d+)/gi)[1]*1;
		var qfail=myQuests.match(/(\d+)/gi)[2];
		var qupdate=myQuests.match(/(\d+)/gi)[3];
		qupdate=(ntime-qupdate)/1000;
		qupdate=parseInt(qupdate+'');
		
		var object=document.getElementById('mainmenu').getElementsByTagName('a')[1].innerHTML;
		if(object.match(/\(\d+\)/i)){
			var num=object.match(/\(\d+\)/i)[0];
			qcompl=qcompl+num.replace('(','').replace(')','')*1;
			document.getElementById('mainmenu').getElementsByTagName('a')[1].innerHTML=object.replace(num,'').replace(' ','');
		}
		
		if(qcompl>0){
			document.getElementById('mainmenu').getElementsByTagName('a')[1].innerHTML+=' (<font color="green">'+qcompl+'</font>)';
		}
		
		var inQuests=GM_getValue('QTimer_work_dungeon_combat_grouparena_expedition_arena_items_'+GCAO_lang+'_'+GCAO_server, '0_0_0_0_0_0_0');
		var qwork=inQuests.match(/(\d+)/gi)[0];
		var qdungeon=inQuests.match(/(\d+)/gi)[1];
		var qcombat=inQuests.match(/(\d+)/gi)[2];
		var qgrouparena=inQuests.match(/(\d+)/gi)[3];
		var qexpedition=inQuests.match(/(\d+)/gi)[4];
		var qarena=inQuests.match(/(\d+)/gi)[5];
		var qitems=inQuests.match(/(\d+)/gi)[6];
		
		if(getMyLevel()<10){var quests=2;}else{var quests=5;}
		
		var qInfo = document.createElement('div');
		qInfo.setAttribute('id', 'QuestInfo');
		qInfo.setAttribute('style', 'display:none;border:1px solid grey;padding:2px;opacity:0.90;z-index:502;position:absolute;top:209px;'+GCAO_left+':345px;background-color:black;color:rgb(192, 192, 192);text-align:left;');
		qInfo.innerHTML = '<table><tbody><tr><th colspan="4">'+L_QuestsInfo+'</th></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/button_accept_hover.jpg" width="15px" align="absmiddle"/></td><td>'+L_Takenquests+'</td><td>:</td><td>'+qtaken+' / '+quests+'</td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/button_finish_hover.jpg" width="15px" align="absmiddle"/></td><td>'+L_Completedquests+'</td><td>:</td><td><font color="green">'+qcompl+'</font></td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/button_restart_hover.jpg" width="15px" align="absmiddle"/></td><td>'+L_Failedquests+'</td><td>:</td><td><font color="red">'+qfail+'</font></td></tr>'+
		//'<tr><td colspan="4"><font size="1"><i>Last update: '+qupdate+' sec ago</i></font></td></tr>'+
		'<tr><td colspan="4"></td></tr>'+
		'<tr><th colspan="4">'+L_InactiveQuests+'</th></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/icon_work_active.jpg" width="15px" align="absmiddle"/></td><td>'+L_Workquests+'</td><td>:</td><td>'+qwork+'</td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/icon_items_active.jpg" width="15px" align="absmiddle"/></td><td>'+L_Itemsquests+'</td><td>:</td><td>'+qitems+'</td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/icon_expedition_active.jpg" width="15px" align="absmiddle"/></td><td>'+L_Expeditionquests+'</td><td>:</td><td>'+qexpedition+'</td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/icon_dungeon_active.jpg" width="15px" align="absmiddle"/></td><td>'+L_Dungeonquests+'</td><td>:</td><td>'+qdungeon+'</td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/icon_combat_active.jpg" width="15px" align="absmiddle"/></td><td>'+L_Combatquests+'</td><td>:</td><td>'+qcombat+'</td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/icon_arena_active.jpg" width="15px" align="absmiddle"/></td><td>'+L_Arenaquests+'</td><td>:</td><td>'+qarena+'</td></tr>'+
		'<tr><td><img src="http://s10.gladiatus.de/game/img/ui/quest/icon_grouparena_active.jpg" width="15px" align="absmiddle"/></td><td>'+L_Turmaquests+'</td><td>:</td><td>'+qgrouparena+'</td></tr>'+
		'</tbody></table>';
		document.getElementById('header_game').appendChild(qInfo);
		
		document.getElementById('mainmenu').getElementsByTagName('a')[1].setAttribute('onmouseover','document.getElementById(\'QuestInfo\').setAttribute(\'style\',\'display:block;border:1px solid grey;padding:2px;opacity:0.90;z-index:502;position:absolute;top:209px;'+GCAO_left+':345px;background-color:black;color:rgb(192, 192, 192);text-align:left;\');');
		document.getElementById('mainmenu').getElementsByTagName('a')[1].setAttribute('onmouseout','document.getElementById(\'QuestInfo\').setAttribute(\'style\',\'display:none;border:1px solid grey;padding:2px;opacity:0.90;z-index:502;position:absolute;top:209px;'+GCAO_left+':345px;background-color:black;color:rgb(192, 192, 192);text-align:left;\');');
		
		if(ptime==0){
			document.getElementById('QuestTime').innerHTML='(N/A)';
		}else if(qtaken==quests){
			document.getElementById('QuestTime').innerHTML='(<font color="red">'+L_Full+'</font>)';
		}else{
			var diftime=(ntime-ptime)/1000;
			diftime=parseInt(diftime+'');
			
			var hours=dtime.match(/(\d+)/gi)[0]*3600;
			var minutes=dtime.match(/(\d+)/gi)[1]*60;
			var seconds=dtime.match(/(\d+)/gi)[2]*1;
			
			var finalTime=hours+minutes+seconds-diftime;
			
			if(finalTime>0){
				var hours=finalTime/3600;
				hours=parseInt(hours+'');
				var minutes=(finalTime%3600)/60
				minutes=parseInt(minutes+'');
				var seconds=(finalTime%3600)%60-6
				seconds=parseInt(seconds+'');
				
				if(hours<10){hours='0'+hours;}
				if(minutes<10){minutes='0'+minutes;}
				if(seconds<10){seconds='0'+seconds;}
				
				document.getElementById('QuestTime').innerHTML='('+minutes+':'+seconds+')';
				
				var dealerTimeScript=document.createElement('script');
				dealerTimeScript.innerHTML='var questclockReseter='+finalTime+';questClock();function questClock(){if((questclockReseter-(questclockReseter%3600))/3600<10){var h="0";}else{var h="";}if(((questclockReseter%3600)-(questclockReseter%60))/60<10){var m="0";}else{var m="";}if(questclockReseter%60<10){var s="0";}else{var s="";}document.getElementById("QuestTime").innerHTML="("+m+((questclockReseter%3600)-(questclockReseter%60))/60+":"+s+questclockReseter%60+")";questclockReseter=questclockReseter-1;if(questclockReseter==-2){document.getElementById("QuestTime").innerHTML="('+L_New+')";document.getElementById("QuestTime").style.color="yellow";}else{setTimeout("questClock()",999);}}';
				document.body.appendChild(dealerTimeScript);
			}else{
				document.getElementById('QuestTime').innerHTML='<font color="yellow">('+L_New+')</font>';	
			}
		}
	}
}

//################################################################################################################################
//## DEALER TIME
//################################################################################################################################
function saveDealerTime(){
	if(document.getElementById('bx0') && document.getElementById('content').getElementsByTagName('input')[3]){
		var dtime=document.getElementById('bx0').innerHTML;
		var ntime=day.getTime().toString();
		var L_newGoods=toASCII(document.getElementById('content').getElementsByTagName('input')[3].getAttribute('value'));
		
		GM_setValue('DTimer_dtime_'+GCAO_lang+'_'+GCAO_server, dtime);
		GM_setValue('DTimer_ntime_'+GCAO_lang+'_'+GCAO_server, ntime);
		GM_setValue('L_newGoods_'+GCAO_lang+'_'+GCAO_server, L_newGoods);
	}
}

function displayDealerTime(){
	var dtime=GM_getValue('DTimer_dtime_'+GCAO_lang+'_'+GCAO_server, '0:0:0');
	var ptime=GM_getValue('DTimer_ntime_'+GCAO_lang+'_'+GCAO_server, 0);
	ptime=parseInt(ptime);
	var L_newGoods=GM_getValue('L_newGoods_'+GCAO_lang+'_'+GCAO_server, 'New Goods');
	var ntime=day.getTime();
	
	var ddt=doc.createElement('div');
	ddt.setAttribute('id', 'Dealers');
	ddt.setAttribute('style', 'margin-'+GCAO_left+':40px;margin-top:133px;color:#C7B68A;text-align:'+GCAO_left+';');
	ddt.innerHTML=L_merchants+': <span id="DealerTime" style="margin-'+GCAO_left+':0px;">??:??:??</span>';
	document.getElementById('header_game').appendChild(ddt);
	
	if(ptime==0 || !dtime.match(/(\d+)/gi)){
		document.getElementById('DealerTime').innerHTML='N/A';
	}else{
		var diftime=(ntime-ptime)/1000;
		diftime=parseInt(diftime+'');
		
		var hours=dtime.match(/(\d+)/gi)[0]*3600;
		var minutes=dtime.match(/(\d+)/gi)[1]*60;
		var seconds=dtime.match(/(\d+)/gi)[2]*1;
		
		var finalTime=hours+minutes+seconds-diftime;
		
		if(finalTime>0){
			var hours=finalTime/3600;
			hours=parseInt(hours+'');
			var minutes=(finalTime%3600)/60
			minutes=parseInt(minutes+'');
			var seconds=(finalTime%3600)%60-6
			seconds=parseInt(seconds+'');
			
			var color='#C7B68A;';
			if(hours==0){color='red';}
			
			if(hours<10){hours='0'+hours;}
			if(minutes<10){minutes='0'+minutes;}
			if(seconds<10){seconds='0'+seconds;}
			
			var pStyle=document.getElementById('DealerTime').getAttribute('style');
			document.getElementById('DealerTime').setAttribute('style',pStyle+'color:'+color);
			document.getElementById('DealerTime').innerHTML=hours+':'+minutes+':'+seconds;
			
			var dealerTimeScript=document.createElement('script');
			dealerTimeScript.innerHTML='var dealerclockReseter='+finalTime+';dealerClock();function dealerClock(){if((dealerclockReseter-(dealerclockReseter%3600))/3600<1){document.getElementById("DealerTime").style.color="red";}else{document.getElementById("DealerTime").style.color="#C7B68A;";}if((dealerclockReseter-(dealerclockReseter%3600))/3600<10){var h="0";}else{var h="";}if(((dealerclockReseter%3600)-(dealerclockReseter%60))/60<10){var m="0";}else{var m="";}if(dealerclockReseter%60<10){var s="0";}else{var s="";}document.getElementById("DealerTime").innerHTML=""+h+(dealerclockReseter-(dealerclockReseter%3600))/3600+":"+m+((dealerclockReseter%3600)-(dealerclockReseter%60))/60+":"+s+dealerclockReseter%60;dealerclockReseter=dealerclockReseter-1;if(dealerclockReseter==-2){document.getElementById("DealerTime").innerHTML="'+L_newGoods+'";document.getElementById("DealerTime").style.color="yellow";}else{setTimeout("dealerClock()",999);}}';
			document.body.appendChild(dealerTimeScript);
		}else{
			document.getElementById('DealerTime').innerHTML='<font color="yellow">'+L_newGoods+'</font>';	
		}
	}
}

//################################################################################################################################
//## IMPROVING GUILD WAR MEMBERS STYLE
//################################################################################################################################
function warCampMemberStyle(){
	var details_img='';
	var code=document.getElementById('content').getElementsByTagName('table')[0].innerHTML;
	code=code.replace(/t=2&amp;sh=................................">[^<]+<\/a>/gi,'t=2&sh='+GCAO_secureCode+'"><img src="'+details_img+'" style="border:0px;"/></a>');
	code=code.replace(/t=3&amp;sh=................................">[^<]+<\/a>/gi,'t=3&sh='+GCAO_secureCode+'"><img src="'+details_img+'" style="border:0px;"/></a>');
	code=code.replace(/Sun,/gi,'<font color="red"><b>Sun</b></font>,').replace(/Mon,/gi,'<font color="#660000"><b>Mon</b></font>,').replace(/Tue,/gi,'<font color="#006600"><b>Tue</b></font>,').replace(/Wed,/gi,'<font color="orange"><b>Wed</b></font>,').replace(/Thu,/gi,'<font color="#666666"><b>Thu</b></font>,').replace(/Fri,/gi,'<font color="purple"><b>Fri</b></font>,').replace(/Sat,/gi,'<font color="#003399"><b>Sat</b></font>,');
	document.getElementById('content').getElementsByTagName('table')[0].innerHTML=code;
	document.getElementById('content').getElementsByTagName('div')[3].setAttribute('style','margin-'+GCAO_left+':0px;margin-'+GCAO_right+':4px;margin-top:40px;clear:both;');
	document.getElementById('content').getElementsByTagName('th')[0].setAttribute('style','width:170px;');
	
	var nor=document.getElementById('content').getElementsByTagName('tr').length-1;
	
	var box=doc.createElement('div');
	box.setAttribute('id', 'WarListOptions');
	box.setAttribute('style', 'margin-'+GCAO_left+':200px;margin-top:55px;float:'+GCAO_left+';position:absolute;');
	box.innerHTML=''+
	'<input type="checkbox" checked="checked" id="A" onclick="for(i=1;i<='+nor+';i++){if(document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].getElementsByTagName(\'td\')[1].innerHTML.match(\'<span\') && !document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].getElementsByTagName(\'td\')[2].innerHTML.match(\'<span\')){if(!this.checked){document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].setAttribute(\'style\',\'display:none;\');}else{document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].setAttribute(\'style\',\'display:inherited;\');}}}"><label for="A">'+L_Attacks+'</label> | '+
	'<input type="checkbox" checked="checked" id="D" onclick="for(i=1;i<='+nor+';i++){if(!document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].getElementsByTagName(\'td\')[1].innerHTML.match(\'<span\') && document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].getElementsByTagName(\'td\')[2].innerHTML.match(\'<span\')){if(!this.checked){document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].setAttribute(\'style\',\'display:none;\');}else{document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].setAttribute(\'style\',\'display:inherited;\');}}}"><label for="D">'+L_Defences+'</label> | '+
	'<input type="checkbox" checked="checked" id="F" onclick="for(i=1;i<='+nor+';i++){if(document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].getElementsByTagName(\'td\')[1].innerHTML.match(\'<span\') && document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].getElementsByTagName(\'td\')[2].innerHTML.match(\'<span\')){if(!this.checked){document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].setAttribute(\'style\',\'display:none;\');}else{document.getElementById(\'content\').getElementsByTagName(\'tr\')[i].setAttribute(\'style\',\'display:inherited;\');}}}"><label for="F">'+L_Friendly+'</label>'+
	'';
	document.getElementById('content').getElementsByTagName('p')[0].appendChild(box);
}

//################################################################################################################################
//## IMPROVING GUILD WAR ICONS (USING ICONS OF QUESTS)
//################################################################################################################################
function betterGuildWarIcons(){
	document.getElementById('content').innerHTML = document.getElementById('content').innerHTML.replace(/guild\/combat\/lose\.gif/gi,'ui/quest/button_cancel.jpg" width="20"');
	document.getElementById('content').innerHTML = document.getElementById('content').innerHTML.replace(/guild\/combat\/win\.gif/gi,'ui/quest/button_finish.jpg" width="20"');
	document.getElementById('content').innerHTML = document.getElementById('content').innerHTML.replace(/guild\/combat\/draw\.gif/gi,'ui/quest/button_accept.jpg" width="20"');
}

//################################################################################################################################
//## GUILD LIFE
//################################################################################################################################
function guildLifeTab(){
	if(!document.getElementById('content').getElementsByTagName('input')[1]){
		var mainnav = document.getElementById('mainnav');
		var newTab = document.createElement('li');
		newTab.className='pngfix';
		newTab.innerHTML = '<a style="cursor:pointer;" class="pngfix" id="GuildLifeTab">'+L_guildLife+'</a>';
		mainnav.appendChild(newTab);
		
		var L_medicCenter=toASCII(document.getElementById('mainnav').getElementsByTagName('a')[0].innerHTML);
		GM_setValue('L_medicCenter_'+GCAO_lang+'_'+GCAO_server, L_medicCenter);
		
		document.getElementById('GuildLifeTab').addEventListener('click', guildLife, false);
	}
}

function guildLife(){
	document.getElementById('mainnav').getElementsByTagName('a')[0].setAttribute('class','pngfix');
	document.getElementById('mainnav').getElementsByTagName('a')[1].setAttribute('class','pngfix  current');
	document.getElementById('content').innerHTML='<center style="margin-top:20px;"><b id="Status">Loading...</b></center>';
	
	GM_xmlhttpRequest({
		method: "GET",
		url: GCAO_siteurl+'mod=guild_warcamp&sh='+GCAO_secureCode,
		onload: function(response){
			if(response.responseText.match(/mod=guild&i=(\d+)&sh/i)){
				var id=response.responseText.match(/mod=guild&i=(\d+)&sh/i)[1];
				//Second request!
				document.getElementById('Status').innerHTML='Still loading...';
				GM_xmlhttpRequest({
					method: "GET",
					url: GCAO_siteurl+'mod=guild_warcamp&submod=guild_combat&gid='+id+'&sh='+GCAO_secureCode,
					onload: function(response){
						var data=response.responseText;
						data=data.substring(data.indexOf('<div class="dungeon_report_statistic'),data.indexOf('<form action="index.php?mod=guild_warcamp'));
						document.getElementById('content').innerHTML='<table cellspacing="0" cellpadding="0" border="0" style="margin-left:10px;"><tbody>'+
						'<tr>'+
						'<td colspan="3" style="vertical-align:top;width:515px;">'+
						'<div class="title_box" style="margin-top:10px;">'+
						'<div class="title_inner" style="padding-left:0px;">'+
						data;
					}
				});
			}else{
				document.getElementById('Status').innerHTML='Can not retrieve data...';
			}
		}
	});
}

//################################################################################################################################
//## EXTENDED SEARCH
//################################################################################################################################
function extendedSearchSmall(){
	var img_search='%3D%3D';
	var img_submit='%3D%3D';
	var newElement = document.createElement('div');
	newElement.setAttribute('id', 'ItemSearchSmall');
	newElement.setAttribute('class', 'searchContainer');
	newElement.innerHTML='<style>.searchContainer {border-width: 0;margin-top: 40px;margin-'+GCAO_right+': -120px;padding: 10px;}#searchInput {background-image: url("'+img_search+'");background-position: 2px center;background-repeat: no-repeat;padding-left: 23px;width: 13em;}.searchSubmit {margin: -1px 0 0;padding-left: 1px;vertical-align: middle; border:0px;}</style>'+
	'<input id="searchInput" class="inputText searchOptions" type="text" value="'+L_itemSearch+'" onclick="document.getElementById(\'searchInput\').setAttribute(\'value\',\'\');">'+
	'<input id="searchSubmit" class="searchSubmit inputImage" type="image" alt="Submit" src="'+img_submit+'" tabindex="2" onclick="self.scrollTo(0,10000);">';
	doc.getElementById('mainnav').appendChild(newElement);
	document.getElementById('searchSubmit').addEventListener('click', searchItems, false);
}

function searchItems(){
	if(!document.getElementById('Results')){
		var newElement = document.createElement('div');
		newElement.setAttribute('style', 'margin-top:50px;border:1px solid #af8e50;background-color:#ded8c6;padding:5px;');
		newElement.innerHTML = '<table id="Results"><tr><b>'+L_Results+':</b></tr></table><br/>'+
							'<table id="FoundItems"><tr><b>'+L_itemsFound+':</b></tr></table>';
		document.getElementById('content').appendChild(newElement);
	}else{
		document.getElementById('Results').innerHTML='';
		document.getElementById('FoundItems').innerHTML='';
	}
	
	var itemName=doc.getElementById('searchInput').value.toLowerCase();
	if(itemName!='' && itemName!=' ' && !itemName.match(/[<>=+-]/i)){
		for(y=1;y<=5;y++){
			for(c=0;c<=1;c++){
				GM_xmlhttpRequest({
					method: "GET",
					url: GCAO_siteurl+'mod=inventory&subsub='+c+'&sub='+y+'&sh='+GCAO_secureCode,
					onload: function(response){
						if(response.responseText.match(/var INIT_DHTML = true;/i)){
							var dealerName=response.responseText.match(/class="pngfix  current" style="cursor:pointer;">([^<]+)<\/a>/i)[1];
							var data=response.responseText.split('<script');
							var x=0;
							while(!data[x].match(/var INIT_DHTML = true;/i)){
								x++;
							}
							data=data[x];
							
							var dealerNum=data.match(/aktShopPage = (\d+);/i)[1];
							var items=data.split('AddCharDiv(\'p'+dealerNum);
							
							x=0;
							var item_number=0;
							var the_items='';
							while(items[x]){
								if(items[x].toLowerCase().match(itemName)){
									var temp=items[x].match(/<table.+table>/i)+'';
									the_items+=temp.replace(/\\'/g,"'");
									item_number++;
								}
								x++;
							}
							
							if(item_number>0){
								var plus='<a style="text-decoration:none;" onclick="if(document.getElementById(\'Items_'+dealerNum+'\').getAttribute(\'style\')==\'display:none;\'){document.getElementById(\'Items_'+dealerNum+'\').setAttribute(\'style\',\'display:block;\');this.innerHTML=\'(-)\';}else{document.getElementById(\'Items_'+dealerNum+'\').setAttribute(\'style\',\'display:none;\');this.innerHTML=\'(+)\';}">(+)</a>';
							}else{
								var plus='';
							}
							
							var tab=parseInt(response.responseText.match(/<form action="index.php.mod=inventory&&sub=\d+&subsub=(\d+)/i)[1])+1;
							var newElement = document.createElement('tr');
							newElement.innerHTML = '<td>'+dealerName+' ('+tab+'):</td><td>'+item_number+'</td><td>'+plus+'</td>';
							document.getElementById('Results').appendChild(newElement);
							
							if(item_number>0){
								var newElement = document.createElement('tr');
								newElement.setAttribute('id','Items_'+dealerNum);
								newElement.setAttribute('style','display:none;');
								newElement.innerHTML = '<td>'+the_items+'</td>';
								document.getElementById('FoundItems').appendChild(newElement);
							}
						
						}else{
							var newElement = document.createElement('tr');
							newElement.innerHTML = '<td colspan="3">Getting data error</td>';
							document.getElementById('Results').appendChild(newElement);
						}
					}
				});
			}
		}
	}
}

//################################################################################################################################
//## Banned
//################################################################################################################################
function banFromUsingTheAddOn(){
	var playersID = GM_getValue('playersId_'+GCAO_server+'_'+GCAO_lang, 0);

	if(document.getElementById('content').innerHTML.match(/\(\d+\) GCA JUST UNBANNED YOU/i)){
		var code=document.getElementById('content').innerHTML.match(/\((\d+)\) GCA JUST UNBANNED YOU/i)[1]*1;
		code=code-1;
		if(code==playersID){
			GM_setValue('BANNED_'+GCAO_server+'_'+GCAO_lang, false);
		}
	}else if(document.getElementById('content').innerHTML.match(/\(\d+\) GCA JUST BANNED YOU/i)){
		var code=document.getElementById('content').innerHTML.match(/\((\d+)\) GCA JUST BANNED YOU/i)[1]*1;
		if(code==playersID){
			GM_setValue('BANNED_'+GCAO_server+'_'+GCAO_lang, true);
		}
	}
}

//################################################################################################################################
//## CALCULATE GUILD UPGRADE COST PER PLAYER
//################################################################################################################################
function guildBuildings(){
	if(document.getElementById('mainbox')){
		if(document.getElementById('mainbox').getElementsByTagName('div')[3].innerHTML.match(/<\/b> ([^<]+) <img/i)){
			var guildGold=parseInt(document.getElementById('mainbox').getElementsByTagName('div')[3].innerHTML.replace(/\./gi,'').match(/<\/b> ([^<]+) <img/i)[1]);
			//var guildDiscount=document.getElementById('mainbox').getElementsByTagName('div')[3].innerHTML.match(/(\d+)%/i)[1];
			for (var i=0;i<=10;i++){
				if(document.getElementById('mainbox').getElementsByTagName('table')[i]){
					var targetGold=parseInt(document.getElementById('mainbox').getElementsByTagName('table')[i].getElementsByTagName('td')[2].innerHTML.replace(/\./gi,'').match(/gold.>([^<]+)<img/i)[1]);
					var link=GCAO_siteurl+'mod=guild&submod=memberList&i=0&sh='+GCAO_secureCode+'&targetGold='+targetGold+'&guildGold='+guildGold;
				
					document.getElementById('mainbox').getElementsByTagName('table')[i].getElementsByTagName('tr')[0].innerHTML+='<td> <a href="'+link+'" style="text-decoration:none;" title="'+L_calculateGuildUpgradeTitle+'">(+)</a> </td>';
				}
			}
		}
	}
}

function calculateForGuildUpgrade(){
	var targetGold=document.location.href.match(/targetGold=(\d+)/i)[1];
	var guildGold=document.location.href.match(/guildGold=(\d+)/i)[1];
	document.getElementById('mainnav').getElementsByTagName('li')[0].style.display='none';
	document.getElementById('mainnav').getElementsByTagName('li')[1].innerHTML='<a class="pngfix current">Calculator</a>';
	document.getElementById('mainnav').getElementsByTagName('li')[2].style.display='none';
	document.getElementById('mainnav').getElementsByTagName('li')[3].style.display='none';
	//document.getElementById('mainbox').setAttribute('style','margin-top:-20px;');
	document.getElementById('mainbox').getElementsByTagName('div')[1].innerHTML=L_calculateGuildUpgradeTitle;
	document.getElementById('mainbox').getElementsByTagName('tr')[0].getElementsByTagName('td')[0].getElementsByTagName('a')[0].removeAttribute('href');
	document.getElementById('mainbox').getElementsByTagName('tr')[0].getElementsByTagName('td')[1].innerHTML='<a>'+L_Include+'</a>';
	document.getElementById('mainbox').getElementsByTagName('tr')[0].getElementsByTagName('td')[2].getElementsByTagName('a')[0].removeAttribute('href');
	document.getElementById('mainbox').getElementsByTagName('tr')[0].getElementsByTagName('td')[3].innerHTML='<a>'+L_FixedGold+'</a>';
	document.getElementById('mainbox').getElementsByTagName('tr')[0].getElementsByTagName('td')[4].innerHTML='<a>'+L_GoldPerPlayer+'</a>';
	var trs=document.getElementById('mainbox').getElementsByTagName('tr').length;
	document.getElementById('mainbox').getElementsByTagName('tr')[trs-2].innerHTML='<td colspan="3"><br/>'+L_TargetGold+': <b><font id="targetGold">'+dottedNumber(targetGold)+'</font></b> <img align="absmiddle" border="0" src="'+img_gold+'"><br/>'+L_GoldInBank+': <b id="bank_gold">'+dottedNumber(guildGold)+'</b> <img align="absmiddle" border="0" src="'+img_gold+'"> <input id="ckeck_calculate_bank" type="checkbox" checked="checked"> <!--('+L_notCalculated+')--></td><td colspan="2">'+L_Difference+': <b id="result">-</b></td>';
	document.getElementById('mainbox').getElementsByTagName('tr')[trs-1].style.display='none';
	
	for (var i=1;i<=(trs-3);i++){
		document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[1].innerHTML='<input id="pls_ckeck_'+i+'" type="checkbox" checked="checked">';
		document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[3].innerHTML='<input id="pls_input_'+i+'" type="int" size="8" maxlength="9" value="0">';
		document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[4].innerHTML=' - ';
	
	}
	document.getElementById('content').innerHTML+='<input class="button2" type="button" value="'+L_Calculate+'" id="calculate" title="'+L_CalculateTitle+'" style="margin-left:200px;">';
	document.getElementById('calculate').addEventListener("click", calculateForGuildUpgrade2, false);
	calculateForGuildUpgrade2();
}

function calculateForGuildUpgrade2(){
	var targetGold=parseInt(document.getElementById('targetGold').innerHTML.replace(/\./gi,''));
	var Gold=targetGold;
	var totalLevel=0;
	var trs=document.getElementById('mainbox').getElementsByTagName('tr').length;
	for (var i=1;i<=(trs-3);i++){
		if(document.getElementById('pls_ckeck_'+i).checked==true){
			if(document.getElementById('pls_input_'+i).value==0 || document.getElementById('pls_input_'+i).value==''){
				var level=parseInt(document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML);
				totalLevel+=level;
			}else{
				var fixedGold=parseInt(document.getElementById('pls_input_'+i).value);
				Gold-=fixedGold;
			}
		}
	}
	
	var futureGatheredGold=0;
	if(document.getElementById('ckeck_calculate_bank').checked==true){
		Gold-=parseInt(document.getElementById('bank_gold').innerHTML.replace(/\./gi,''));
		futureGatheredGold+=parseInt(document.getElementById('bank_gold').innerHTML.replace(/\./gi,''));
	}
	
	if(Gold<0){Gold=0}
	var goldPerLevel=Gold/totalLevel;
	for (var i=1;i<=(trs-3);i++){
		if(document.getElementById('pls_ckeck_'+i).checked==true){
			if(document.getElementById('pls_input_'+i).value==0 || document.getElementById('pls_input_'+i).value==''){
				var level=parseInt(document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[2].innerHTML);
				var playerGold=parseInt(level*goldPerLevel)+1;
			}else{
				var fixedGold=parseInt(document.getElementById('pls_input_'+i).value);
				var playerGold=fixedGold;
			}
			futureGatheredGold+=playerGold;
			document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[4].innerHTML=dottedNumber(playerGold)+' <img align="absmiddle" border="0" src="'+img_gold+'">';
		}else{
			document.getElementById('pls_input_'+i).value=0;
			document.getElementById('mainbox').getElementsByTagName('tr')[i].getElementsByTagName('td')[4].innerHTML=' - ';
		}
	}
	var result=futureGatheredGold-targetGold;
	if(result<0){
		document.getElementById('result').innerHTML='<font color="red">'+dottedNumber(result)+'</font> <img align="absmiddle" border="0" src="'+img_gold+'">';
	}else{
		document.getElementById('result').innerHTML='<font color="green">+'+dottedNumber(result)+'</font> <img align="absmiddle" border="0" src="'+img_gold+'">';
	}
}

//################################################################################################################################
//## SHOW THE TYPE OF THE FIGHTER
//################################################################################################################################
function showTheTypeOfTheFighter(){
	if(document.getElementById('charstats')){
		if(document.getElementById('char_healing_tt').style.display==""){//Healer http://s1.gladiatus.gr/game/6014/img/interface/task_3_active.gif
			var NoImage=3;
		}else if(document.getElementById('char_threat_tt').style.display==""){//Defender
			var NoImage=1;
		}else{//Attacker
			var NoImage=2;
		}
		var image_link=GCAO_siteurl.replace('index.php?','')+'img/interface/task_'+NoImage+'_active.gif';
		
		var newImg=document.createElement('img');
		newImg.setAttribute('src',image_link);
		newImg.setAttribute('style','position:absolute;top:-35px;left:10px;');
		document.getElementById('charstats').appendChild(newImg);
	}
}

//################################################################################################################################
//## CHANGES WHILE TRAVELING
//################################################################################################################################
function whileTraveling(){
	if(doc.getElementById("ButtonsDiv")){
		for(i=1;i<8;i++){
			doc.getElementById('ButtonsDiv').getElementsByTagName('a')[i].setAttribute("style","display:none;");
		}
		doc.getElementById('ButtonsDiv').getElementsByTagName('a')[8].setAttribute("style","float:left;margin-left:-15px;");
	}
	if(doc.getElementById("OnlinePlayers")){
		doc.getElementById('OnlinePlayers').setAttribute("style","margin-left:-191px;");
	}
	doc.getElementById('menue_news').setAttribute("style","opacity:0.3;");
	doc.getElementById('menue_reports').setAttribute("style","opacity:0.3;");
	doc.getElementById('menue_packages').setAttribute("style","opacity:0.3;");
	if(doc.getElementById('mainmenu')){
		doc.getElementById('mainmenu').getElementsByTagName('a')[1].setAttribute("style","display:none;");
		var temp_url=doc.getElementById('mainmenu').getElementsByTagName('a')[2].getAttribute("href");
		doc.getElementById('mainmenu').getElementsByTagName('a')[2].setAttribute("href",temp_url.replace('guild','guild_main'));
	}
	if(GCAO_mod=='guild_main'){
		doc.getElementById('mainnav').getElementsByTagName('li')[0].setAttribute("style","display:none;");
		if(GCAO_submod=='guild_admin'){
			doc.getElementById('mainbox').getElementsByTagName('a')[0].setAttribute("style","display:none;");
			doc.getElementById('mainbox').getElementsByTagName('a')[3].setAttribute("style","display:none;");
		}
	}
	if(doc.getElementById("content").innerHTML.match(/cancelTravel/g)){
		doc.getElementById("content").getElementsByTagName('input')[0].setAttribute("class","button1");
		var settingsDiv = document.createElement('div');
		settingsDiv.setAttribute('id', 'AddOnSettingsBox');
		settingsDiv.setAttribute('style', 'margin-left:20px;margin-right:20px;');
		settingsDiv.innerHTML = '<br><div class="title_box"><div class="title_inner" id="title">'+L_donateTitle+'</div></div>'+
		'<div class="title2_box"><div class="title2_inner">'+
		'<p>'+L_donateText+' :)'+
		'<br><center><form border="0" action="https://www.paypal.com/cgi-bin/webscr" method="post">'+
		'<input type="hidden" name="cmd" value="_s-xclick">'+
		'<input type="hidden" name="hosted_button_id" value="NLTXXPMHCVLYC">'+
		'<input type="image" style="border:0px solid black;" src="'+img_donateButton+'" name="submit" alt="PayPal - The safer, easier way to pay online!">'+
		'<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1">'+
		'</form></center><br/>We also accept <a target="_blank" href="https://coupon.gameforge.com/">Gameforge Coupons</a> :P</p>'+
		'</div></div>';
		document.getElementById('content').appendChild(settingsDiv);
	}
}

//################################################################################################################################
//## SAVE GROUP ARENA STATUS
//################################################################################################################################
function saveGroupArenaStatus(){
	var style=document.getElementById('ct_state_current').getElementsByTagName('span')[0].getAttribute('style');
	if(style=='color:red;'){
		GM_setValue('Group_Arena_Status_'+GCAO_lang+'_'+GCAO_server, false);
	}else{
		GM_setValue('Group_Arena_Status_'+GCAO_lang+'_'+GCAO_server, true);
	}
}

//################################################################################################################################
//## LAST TIME ATTACKED COUNTER
//################################################################################################################################
function lastTimeAttackedCounter(){
		var img_timerback='%3D%3D';
		document.getElementById('header_menue').setAttribute('style','z-index:3;');
		document.getElementById('menue_news').setAttribute('style','height:39px;');
		document.getElementById('menue_messages').setAttribute('style','height:39px;');
		document.getElementById('menue_packages').setAttribute('style','height:39px;');
		document.getElementById('menue_reports').setAttribute('style','height:39px;');
		var bgTimerImg=document.createElement('span');
		bgTimerImg.setAttribute('style', 'margin:0px;position:absolute;top:38px;'+GCAO_left+':149px;width:192px;height:108px;z-index:2;background:url(\''+img_timerback+'\');'+invert_image_code);
		document.getElementById('header_game').appendChild(bgTimerImg);
		if(GM_getValue('at', false) == true){
			getAttackTimer('Arena',175,false);
			getAttackTimer('Arena',175,true);
		}
		if(GM_getValue('kt', false) == true){
			getAttackTimer('CircusTurma',260,false);
			getAttackTimer('CircusTurma',260,true);
		}
}

function getAttackTimer(loc,pos,other_server_timer){
	if(other_server_timer){
		var top=100;
		var color_time=1800;
		var symbol='<font style="position:absolute;margin-left:-16px;margin-top:9px;color:#d4ad0f;text-shadow: 0 0 2px #000, 0 0 4px #582f00;">xs</font>';
	}else{
		var top=80;
		var color_time=3600;
		var symbol='';
	}
	
	var color_green='green';
	var color_red='red';
	if(loc=='Arena'){
		var t_img='<img align=\'absmiddle\' src=\'http://i617.photobucket.com/albums/tt260/goldisever/GCAO/icon_arena.gif\' height=18px/>';
	}else{
		var t_img='<img align=\'absmiddle\' src=\'http://i617.photobucket.com/albums/tt260/goldisever/GCAO/icon_grouparena.gif\' height=18px/>';
		if(GM_getValue('Group_Arena_Status_'+GCAO_lang+'_'+GCAO_server, true)==false){
			var color_green='gray';
			var color_red='gray';
		}
	}
	var loadingImage="%3D";
	var beAttackedSpan=document.createElement('span');
	beAttackedSpan.setAttribute('id', 'beAttackedSpanMain'+loc+other_server_timer);
	beAttackedSpan.setAttribute('style', 'margin:0px;position:absolute;top:'+top+'px;'+GCAO_left+':'+pos+'px;font-weight:bold;z-index:3;');
	beAttackedSpan.innerHTML=t_img+symbol+'<span style="color:red;margin-'+GCAO_left+':0px;margin-top:2px;" id="beAttackedSpan'+loc+other_server_timer+'"><img style="margin-top:6px;opacity:0.5;" src="'+loadingImage+'"/></span>';
	document.getElementById('header_game').appendChild(beAttackedSpan);
	
	if(other_server_timer){
		var servers='|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|201'.replace('|'+GCAO_server,'');
		var regexp_time = new RegExp('<td style="min-width:90px">[^.]+\\d+.\\d+.\\d+ (\\d+:\\d+:\\d+)[^<]+<\\/td>[^<]+<td>[^<]+<img src="[^s]+shield-passive.gif"[^<]+<a[^<]+<\\/a[^<]+<a href="http:\\/\\/s('+servers+')\\.[^<]+<\\/a[^<]+<\\/td>[^<]+<td[^<]+<img src="[^r]+res2.gif"',"i");
	}else{
		var regexp_time = new RegExp('<td style="min-width:90px">[^.]+\\d+.\\d+.\\d+ (\\d+:\\d+:\\d+)[^<]+<\\/td>[^<]+<td>[^<]+<img src="[^s]+shield-passive.gif"[^<]+<a[^<]+<\\/a[^<]+<a href="http:\\/\\/s'+GCAO_server+'\\.',"i");
	}
	
	if(!document.location.href.match('show'+loc)){
		if(document.getElementById('menue_reports').getElementsByTagName('div')[0] || GM_getValue('attackedTimeFirstTime_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, true)==true){
			GM_setValue('attackedTimeFirstTime_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, false);
			GM_xmlhttpRequest({
				method: "GET",
				url: GCAO_siteurl+"mod=reports&submod=show"+loc+"&sh="+GCAO_secureCode,
				onload: function(response){
						if(!response.responseText.match('bx0')){
							if(response.responseText.match(/current[^>]+>([^<]+)<.a>/i)){
								var L_title=response.responseText.match(/current[^>]+>([^<]+)<.a>/i)[1];
							}else{var L_title=loc;}
							document.getElementById('beAttackedSpanMain'+loc+other_server_timer).setAttribute('title',L_title);
							if(response.responseText.match(regexp_time)){
								/**Time of attack**/
								var time=response.responseText.match(regexp_time)[1];
								/**Date of attack**/
								var sdate=response.responseText.match(regexp_time)[0].match(/(\d+)\./i)[1]
								/**Time of attack in Seconds**/
								var time=time.match(/\d+/g)[0]*60*60+time.match(/\d+/g)[1]*60+time.match(/\d+/g)[2]*1;
								
								GM_setValue('attackedTime_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, time);
								GM_setValue('attackedSdate_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, sdate);
								
								/**Server Day**/
								var serverDate=document.getElementById('header_game').getElementsByTagName('span')[6].innerHTML.match(/(\d+).\d+/i)[1];
								if(serverDate.match(/0\d/i)){serverDate.replace('0','')}
								/**Server Time in Second**/
								var mytime=new Date();//Seconds are from real life
								var serverTime=document.getElementById('header_game').getElementsByTagName('span')[6].innerHTML.match(/(\d+):(\d+)/i);
								serverTime=serverTime[1]*60*60+serverTime[2]*60+mytime.getSeconds();
								
								/**Time from Attack in Seconds**/
								if(serverDate==sdate){
									var x=serverTime-time;
								}else if(serverDate<sdate){
									var x=serverTime-time+(serverDate+30-sdate)*24*60*60;
								}else{//serverDate>sdate
									var x=serverTime-time+(serverDate-sdate)*24*60*60;
								}
								
								var y=''+(x-(x%3600))/3600+':'+((x%3600)-(x%60))/60+':'+x%60+'';
								document.getElementById('beAttackedSpan'+loc+other_server_timer).innerHTML=y;
								document.getElementById('header_game').appendChild(beAttackedSpan);
								var beAttackScript=document.createElement('script');
								beAttackScript.innerHTML='var clockReseterAttacked'+loc+other_server_timer+'='+x+';beAttackClock'+loc+other_server_timer+'();function beAttackClock'+loc+other_server_timer+'(){if((clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%'+color_time+'))/'+color_time+'<1){document.getElementById("beAttackedSpan'+loc+other_server_timer+'").style.color="'+color_green+'";}else{document.getElementById("beAttackedSpan'+loc+other_server_timer+'").style.color="'+color_red+'";}if((clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%3600))/3600<10){var h="0";}else{var h="";}if(((clockReseterAttacked'+loc+other_server_timer+'%3600)-(clockReseterAttacked'+loc+other_server_timer+'%60))/60<10){var m="0";}else{var m="";}if(clockReseterAttacked'+loc+other_server_timer+'%60<10){var s="0";}else{var s="";}document.getElementById("beAttackedSpan'+loc+other_server_timer+'").innerHTML=""+h+(clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%3600))/3600+":"+m+((clockReseterAttacked'+loc+other_server_timer+'%3600)-(clockReseterAttacked'+loc+other_server_timer+'%60))/60+":"+s+clockReseterAttacked'+loc+other_server_timer+'%60;clockReseterAttacked'+loc+other_server_timer+'=clockReseterAttacked'+loc+other_server_timer+'+1;setTimeout("beAttackClock'+loc+other_server_timer+'()",1000);}';
								document.body.appendChild(beAttackScript);
							}
							else{
								document.getElementById('beAttackedSpan'+loc+other_server_timer).innerHTML=' NaN';
							}
						}
					}
			});
		}else{
			var time=GM_getValue('attackedTime_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, 0);
			var sdate=GM_getValue('attackedSdate_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, 0);
			
			if(time!=0 && sdate!=0){
				/**Server Day**/
				var serverDate=document.getElementById('header_game').getElementsByTagName('span')[6].innerHTML.match(/(\d+).\d+/i)[1];
				if(serverDate.match(/0\d/i)){serverDate.replace('0','')}
				/**Server Time in Second**/
				var mytime=new Date();//Seconds are from real life
				var serverTime=document.getElementById('header_game').getElementsByTagName('span')[6].innerHTML.match(/(\d+):(\d+)/i);
				serverTime=serverTime[1]*60*60+serverTime[2]*60+mytime.getSeconds();
				
				/**Time from Attack in Seconds**/
				if(serverDate==sdate){
					var x=serverTime-time;
				}else if(serverDate<sdate){
					var x=serverTime-time+(serverDate+30-sdate)*24*60*60;
				}else{//serverDate>sdate
					var x=serverTime-time+(serverDate-sdate)*24*60*60;
				}
				
				var y=''+(x-(x%3600))/3600+':'+((x%3600)-(x%60))/60+':'+x%60+'';
				document.getElementById('beAttackedSpan'+loc+other_server_timer).innerHTML=y;
				document.getElementById('header_game').appendChild(beAttackedSpan);
				var beAttackScript=document.createElement('script');
				beAttackScript.innerHTML='var clockReseterAttacked'+loc+other_server_timer+'='+x+';beAttackClock'+loc+other_server_timer+'();function beAttackClock'+loc+other_server_timer+'(){if((clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%'+color_time+'))/'+color_time+'<1){document.getElementById("beAttackedSpan'+loc+other_server_timer+'").style.color="'+color_green+'";}else{document.getElementById("beAttackedSpan'+loc+other_server_timer+'").style.color="'+color_red+'";}if((clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%3600))/3600<10){var h="0";}else{var h="";}if(((clockReseterAttacked'+loc+other_server_timer+'%3600)-(clockReseterAttacked'+loc+other_server_timer+'%60))/60<10){var m="0";}else{var m="";}if(clockReseterAttacked'+loc+other_server_timer+'%60<10){var s="0";}else{var s="";}document.getElementById("beAttackedSpan'+loc+other_server_timer+'").innerHTML=""+h+(clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%3600))/3600+":"+m+((clockReseterAttacked'+loc+other_server_timer+'%3600)-(clockReseterAttacked'+loc+other_server_timer+'%60))/60+":"+s+clockReseterAttacked'+loc+other_server_timer+'%60;clockReseterAttacked'+loc+other_server_timer+'=clockReseterAttacked'+loc+other_server_timer+'+1;setTimeout("beAttackClock'+loc+other_server_timer+'()",1000);}';
				document.body.appendChild(beAttackScript);
			}else{
				document.getElementById('beAttackedSpan'+loc+other_server_timer).innerHTML=' NaN';
			}
		}
	}else{
		if(doc.getElementById('content').innerHTML.match(regexp_time)){
			/**Time of attack**/
			var time=doc.getElementById('content').innerHTML.match(regexp_time)[1];
			/**Date of attack**/
			var sdate=doc.getElementById('content').innerHTML.match(regexp_time)[0].match(/(\d+)\./i)[1]
			/**Time of attack in Seconds**/
			var time=time.match(/\d+/g)[0]*60*60+time.match(/\d+/g)[1]*60+time.match(/\d+/g)[2]*1;
									
			GM_setValue('attackedTime_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, time);
			GM_setValue('attackedSdate_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, sdate);
									
			/**Server Day**/
			var serverDate=document.getElementById('header_game').getElementsByTagName('span')[6].innerHTML.match(/(\d+).\d+/i)[1];
			if(serverDate.match(/0\d/i)){serverDate.replace('0','')}
			/**Server Time in Second**/
			var mytime=new Date();//Seconds are from real life
			var serverTime=document.getElementById('header_game').getElementsByTagName('span')[6].innerHTML.match(/(\d+):(\d+)/i);
			serverTime=serverTime[1]*60*60+serverTime[2]*60+mytime.getSeconds();
					
			/**Time from Attack in Seconds**/
			if(serverDate==sdate){
				var x=serverTime-time;
			}else if(serverDate<sdate){
				var x=serverTime-time+(serverDate+30-sdate)*24*60*60;
			}else{//serverDate>sdate
				var x=serverTime-time+(serverDate-sdate)*24*60*60;
			}
					
			var y=''+(x-(x%3600))/3600+':'+((x%3600)-(x%60))/60+':'+x%60+'';
			document.getElementById('beAttackedSpan'+loc+other_server_timer).innerHTML=y;
			document.getElementById('header_game').appendChild(beAttackedSpan);
			var beAttackScript=document.createElement('script');
			beAttackScript.innerHTML='var clockReseterAttacked'+loc+other_server_timer+'='+x+';beAttackClock'+loc+other_server_timer+'();function beAttackClock'+loc+other_server_timer+'(){if((clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%'+color_time+'))/'+color_time+'<1){document.getElementById("beAttackedSpan'+loc+other_server_timer+'").style.color="'+color_green+'";}else{document.getElementById("beAttackedSpan'+loc+other_server_timer+'").style.color="'+color_red+'";}if((clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%3600))/3600<10){var h="0";}else{var h="";}if(((clockReseterAttacked'+loc+other_server_timer+'%3600)-(clockReseterAttacked'+loc+other_server_timer+'%60))/60<10){var m="0";}else{var m="";}if(clockReseterAttacked'+loc+other_server_timer+'%60<10){var s="0";}else{var s="";}document.getElementById("beAttackedSpan'+loc+other_server_timer+'").innerHTML=""+h+(clockReseterAttacked'+loc+other_server_timer+'-(clockReseterAttacked'+loc+other_server_timer+'%3600))/3600+":"+m+((clockReseterAttacked'+loc+other_server_timer+'%3600)-(clockReseterAttacked'+loc+other_server_timer+'%60))/60+":"+s+clockReseterAttacked'+loc+other_server_timer+'%60;clockReseterAttacked'+loc+other_server_timer+'=clockReseterAttacked'+loc+other_server_timer+'+1;setTimeout("beAttackClock'+loc+other_server_timer+'()",1000);}';
			document.body.appendChild(beAttackScript);
		}else{
			GM_setValue('attackedTime_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, 0);
			GM_setValue('attackedSdate_'+loc+other_server_timer+'_'+GCAO_lang+'_'+GCAO_server, 0);
			document.getElementById('beAttackedSpan'+loc+other_server_timer).innerHTML=' NaN';
		}
	}
}

//################################################################################################################################
//## TAB TITLE
//################################################################################################################################
function tabTitle(){
	if(!document.title.match(' Gladiatus')){
		var y=GM_getValue('tb', true);
		var z=GM_getValue('tc', true);
		var x=GM_getValue('ctt', 0);
		var k=GM_getValue('td', true);
		
		var text='';
		
		if(y){
			text+='Gladiatus';
			if(z){
				text+=' (s'+GCAO_server+'_'+GCAO_lang+')';
			}
			text+=': ';
		}
		
		if(x==0){
			var gold=document.getElementById('sstat_gold_val').innerHTML.replace(/\./gi,'')*1;
			text+=dottedNumber(gold)+' '+L_gold;
		}else if(x==1){
			var time=document.getElementById('cooldown_bar_text_expedition').innerHTML;
			text+=isItTime(time);
			if(k){
				var points=document.getElementById('expeditionpoints_value').innerHTML;
				text+=' ('+points.replace(/ /g,'')+')';
			}
			text+=' '+L_expedition;
		}else if(x==2){
			var time=document.getElementById('cooldown_bar_text_dungeon').innerHTML;
			text+=isItTime(time);
			if(k){
				var points=document.getElementById('dungeonpoints_value').innerHTML;
				text+=' ('+points.replace(/ /g,'')+')';
			}
			text+=' '+L_dungeon;
		}else if(x==3){
			var time=document.getElementById('cooldown_bar_text_arena').innerHTML;
			text+=isItTime(time)+' '+L_arena.toLowerCase();
		}else if(x==4){
			var time=document.getElementById('cooldown_bar_text_ct').innerHTML;
			text+=isItTime(time)+' '+L_turma;
		}
		
		if(!document.title.match(' 00:00 ')){
			document.title=text;
		}else{
			document.title=L_Done;
		}
		setTimeout(tabTitle, 1000);
	}
}

function isItTime(text){
	if(!text.match(/\d/) && !text.match('-')){
		text=' 00:00 ';
	}
	return text;
}

//################################################################################################################################
//## NEW VERSION!
//################################################################################################################################
function checkForNewVersion(){
	GM_xmlhttpRequest({
		method: "GET",
		url: 'http://apo.users.uth.gr/gca/NewVersion.txt',
		onload: function(response){
			var newVersion = response.responseText;
			if(newVersion.match(/\d+/i)){
				newVersion=parseInt(newVersion);
				if(newVersion>version){
					makeTheNewVersionBanner(newVersion);
					GM_setValue('newVersionAvailable',true);
				}else{
					GM_setValue('newVersionAvailable',false);
				}
			}
		}
	});
}

function makeTheNewVersionBanner(version){
	if(document.getElementById('banner_event_link')){//Yparxei banner, to allazoume
		document.getElementById('banner_event_link').setAttribute('style','top: 155px;background-image: url("http://apo.users.uth.gr/gca/signatures/signature_generator.php?'+dottedNumber(version)+'");');
		document.getElementById('banner_event_link').href='http://code.google.com/p/gladiatus-crazy-addon/downloads/list';
		document.getElementById('banner_event_link').onmouseover='';
		document.getElementById('banner_event_link').target='_blank';
	}else{//Den uparxei banner, to ftiaxnoume
		var newDiv=document.createElement('div');
		newDiv.setAttribute('id', 'banner_top');
		newDiv.setAttribute('class', 'pngfix');
		newDiv.setAttribute('style', 'background-image: url("http://apo.users.uth.gr/img/banner_top.png");');
		document.getElementById('container_game').appendChild(newDiv);
		
		var newDiv=document.createElement('div');
		newDiv.setAttribute('id', 'banner_event');
		newDiv.setAttribute('style','top: 155px;background-image: url("http://apo.users.uth.gr/gca/signatures/signature_generator.php?'+dottedNumber(version)+'");');
		newDiv.innerHTML='<a id="banner_event_link" href="http://code.google.com/p/gladiatus-crazy-addon/downloads/list" target="_blank"></a>';
		document.getElementById('container_game').appendChild(newDiv);
		moveAdd();//to metakinoume kiolas gia na fenontai ta koumpia
	}
}

//################################################################################################################################
//## CANSEL ALL FROM MARKET
//################################################################################################################################
function cancelAll(){
	if(document.getElementById('market_item_table')){
		var x=document.getElementById('market_item_table').getElementsByTagName('form').length;
		var tottalitems=x;
		var myitems=0;
		while(x>=1){
			var y=document.getElementById('market_item_table').getElementsByTagName('tr')[x].getElementsByTagName('td')[1].innerHTML;
			if(y.match('span style="color:blue;')){
				myitems++;
			}
			x--;
		}
		
		var newDiv=document.createElement('div');
		newDiv.setAttribute('id', 'CancelAll');
		newDiv.setAttribute('class','title2_box');
		newDiv.innerHTML='<div class="title2_inner"><table width="100%"><tr><td>'+L_numberOfMyItems+': <b id="myitems">'+myitems+'</b> / '+tottalitems+'</td><td></td><td><input id="CancelAllButton" style="float:'+GCAO_right+';" class="button1" type="submit" value="'+L_cancelAll+'"></td></tr></table></div>';
		document.getElementById('content').appendChild(newDiv);
		
		document.getElementById('CancelAllButton').addEventListener('click', cancelAllButton, false);
	}
}

function cancelAllButton(){
	var x=document.getElementById('market_item_table').getElementsByTagName('form').length;
	var mytottalitems=parseInt(document.getElementById('myitems').innerHTML);
	if(mytottalitems!=0){
		document.getElementById('CancelAllButton').value='0 / '+mytottalitems+' (0%)';
		while(x>=1){
			var y=document.getElementById('market_item_table').getElementsByTagName('tr')[x].getElementsByTagName('td')[1].innerHTML;
			if(y.match('span style="color:blue;')){
				var itemsId=document.getElementById('market_item_table').getElementsByTagName('tr')[x].getElementsByTagName('div')[0].id.replace('buy_','');
				GM_xmlhttpRequest({
					method: "POST",
					url: GCAO_siteurl+'mod=guild_market&sh='+GCAO_secureCode,
					headers: {
					'Host': GCAO_siteurl.replace('http://','').replace('/game/index.php?',''),
					'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; el; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
					'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
					'Accept-Language': 'el-gr,el;q=0.8,en-us;q=0.5,en;q=0.3',
					'Accept-Encoding': 'gzip,deflate',
					'Accept-Charset': 'ISO-8859-7,utf-8;q=0.7,*;q=0.7',
					'Keep-Alive': '115',
					'Connection': 'keep-alive',
					'Referer': GCAO_siteurl.replace('game/index.php?',''),
					'Content-Type': 'application/x-www-form-urlencoded'
					},
					data : 'buyid='+itemsId+'&cancel=ÎÎºÏÏÏÏÎ·',
					onload: function(response){
						var myitems=document.getElementById('CancelAllButton').value.match(/(\d+)/gi)[0]*1;
						myitems++;
						document.getElementById('CancelAllButton').value=myitems+' / '+mytottalitems+' ('+(roundNumber(myitems/mytottalitems)*100)+'%)';
						if(myitems==mytottalitems){
							document.location.href=document.location.href;
						}
					}
				});
			}
			x--;
		}
	}
}

//################################################################################################################################
//## ANNOUNCE THE REPORT TO GUILD
//################################################################################################################################
function announceTheReportToGuild(){
	if(document.getElementById('reportHeader')){
		var newInput=document.createElement('input');
		newInput.setAttribute('id', 'reportToGuildTheFight');
		newInput.setAttribute('value',L_anunGuild);
		newInput.setAttribute('class','button1');
		newInput.setAttribute('type','submit');
		newInput.setAttribute('style','position:absolute;margin-top:-68px;margin-'+GCAO_left+':91px;');
		document.getElementById('reportHeader').appendChild(newInput);
		
		document.getElementById("reportToGuildTheFight").addEventListener("click", announceTheReportToGuildButtonWasClicked, false);
	}
}

function announceTheReportToGuildButtonWasClicked(){
	var L_battleReport=document.getElementById('mainnav').getElementsByTagName('a')[1].innerHTML;
	var L_winner=document.getElementById('reportHeader').getElementsByTagName('td')[1].innerHTML;
	var L_reward=document.getElementById('content').getElementsByTagName('table')[1].innerHTML.replace(/(<[^>]+>)/gi,'').replace(/  /g, '').replace(/\n\n/g, "").replace(/:\n/g, ': ');
	
	var L_player1=document.getElementById('attackerAvatar1').getElementsByTagName('div')[1].innerHTML;
	var L_player2=document.getElementById('defenderAvatar11').getElementsByTagName('div')[1].innerHTML;
	
	var tnum=document.location.href.match(/&t=(\d+)/)[1];
	var rId=document.location.href.match(/&reportId=(\d+)/)[1];
	
	if(tnum=='0'){
		L_reward='';
	}
	
	var newDiv=document.createElement('div');
	newDiv.setAttribute('id', 'SentReportMessage');
	newDiv.setAttribute('style','display:none;');
	newDiv.innerHTML='-='+L_battleReport+'=-\n'+L_player1+' Vs '+L_player2+'\n\n'+L_winner+'\n'+L_reward+'\n[ReportId:'+rId+'/'+tnum+']';
	document.getElementById('content').appendChild(newDiv);
	
	sentAuctionGuildMessage();
}

//################################################################################################################################
//## OPTIONS / ΡΥΘΜΙΣΕΙΣ
//################################################################################################################################
function settings(){
	var settingsDiv = document.createElement('div');
	settingsDiv.setAttribute('id', 'AddOnSettingsBox');
	settingsDiv.setAttribute('style', 'margin-left:20px;margin-right:20px;');
	settingsDiv.innerHTML = '<div class="title_box"><div class="title_inner" id="title">'+L_GCASettings+'</div> </div>'+
	'<div class="title2_box"><div class="title2_inner"><span id="Settings">'+
	'<b>- '+L_HeaderSettings+':</b><br>'+
	'<input type="checkbox" name="bu" id="GCAO_s2">'+L_DisplayLinkButtons+'<br>'+
	'<input type="checkbox" name="qm" id="GCAO_s51" style="margin-'+GCAO_left+':20px;">'+L_DisplayQuickMessageBox+'<br>'+
	'<input type="checkbox" name="au" id="GCAO_s3">'+L_DisplayAuctionStatus+'<br>'+
	'<input type="checkbox" name="sa" id="GCAO_s19" style="margin-'+GCAO_left+':20px;">'+L_DisplayMerchantStatus+'<br>'+
	'<input type="checkbox" name="op" id="GCAO_s16">'+L_DisplayOnlinePlayersButton+'<br>'+
	'<input type="checkbox" name="li" id="GCAO_s17">'+L_DisplayLinkBox+'<br>'+
	'<input type="checkbox" name="lv" id="GCAO_s49">'+L_BetterLife+'<br>'+
	'<input type="checkbox" name="hb" id="GCAO_s58">'+L_TopBar+'<br>'+
	'<br><b>- '+L_TimersSettings+':</b><br>'+
	'<input type="checkbox" name="at" id="GCAO_s35">'+L_DisplayLastBeingAttacked+'<br>'+
	'<input type="checkbox" name="kt" id="GCAO_s43">'+L_DisplayLastBeingAttacked2+'<br>'+
	'<input type="checkbox" name="dt" id="GCAO_s52">'+L_DisplayDealerTimer+'<br>'+
	'<br><b>- '+L_AuctionSettings+':</b><br>'+
	'<input type="checkbox" name="af" id="GCAO_s4">'+L_FillAuctionPrices+'<br>'+
	'<input type="checkbox" name="cb" id="GCAO_s5">'+L_ChangeItemsBgColor+'<br>'+
	'<input type="checkbox" name="ml" id="GCAO_s6">'+L_AuctionMoreItemsLavels+'<br>'+
	'<input type="checkbox" name="an" id="GCAO_s7">'+L_DisplayItemNumAndBids+'<br>'+
	'<input type="checkbox" name="il" id="GCAO_s8">'+L_DisplayItemList+'<br>'+
	'<input type="checkbox" name="ea" id="GCAO_s28">'+L_ExpandAuctionTable3+'<br>'+
	'<input type="checkbox" name="hg" id="GCAO_s39">'+L_HideGoldInAuction+'<br>'+
	'<input type="checkbox" name="ap" id="GCAO_s46" style="margin-'+GCAO_left+':20px;">'+L_MorePriceInfoInAuction+'<br>'+
	'<input type="checkbox" name="cf" id="GCAO_s47" style="margin-'+GCAO_left+':20px;">'+L_CheckAffordInAuction+'<br>'+
	'<input type="checkbox" name="ct" id="GCAO_s53">'+L_changeAuctionCompareItems+'<br>'+
	'<span><br><b>- '+L_SimulatorSettings+':</b><br>'+
	'<input type="checkbox" name="si" id="GCAO_s11">'+L_enSimulator+'<br>'+
	'<font style="margin-'+GCAO_left+':20px;">'+L_setFightNum+'</font>: <input type="int" name="sf" id="GCAO_sf" value="1000" maxlength="5" size="3"> ('+L_maximum+' 20.000)<br>'+
	'</span><br><b>- '+L_guildSettings+':</b><br>'+
	'<input type="checkbox" name="st" id="GCAO_s18">'+L_guildStoreInfo+'<br>'+
	'<input type="checkbox" name="gg" id="GCAO_s20">'+L_moreGuildStats+'<br>'+
	'<font style="margin-'+GCAO_left+':20px;">'+L_setNumOfGuild+'</font>: <input type="int" name="gf" id="GCAO_gf" value="10" maxlength="2" size="1"> ('+L_maximum+' 99)<br>'+
	'<input type="checkbox" name="sc" id="GCAO_s40">'+L_guildSafeChanges+'<br>'+
	'<input type="checkbox" name="gm" id="GCAO_s41">'+L_guildMedicChanges+'<br>'+
	'<input type="checkbox" name="gs" id="GCAO_s22">'+L_monsterSimulator+'<br>'+
	'<input type="checkbox" name="mc" id="GCAO_s38">'+L_gmailChanges+' (messagebar, checkboxes)<br>'+
	'<input type="checkbox" name="pr" id="GCAO_s27">'+L_ratioOpt+'<br>'+
	'<input type="checkbox" name="rr" id="GCAO_s33" style="margin-'+GCAO_left+':20px;">'+L_enPriceRatio+'<br>'+
	'<b style="margin-'+GCAO_left+':20px;">[Formula]</b>: Food ratio = life/price , Price ratio = sell price/{(price+value)/2}<br>'+
	'<br><b>- '+L_alertSettings+':</b><br>'+
	'<input type="checkbox" name="ca" id="GCAO_s25">'+L_immedBuy+'<br>'+
	'<input type="checkbox" name="fc" id="GCAO_s48">'+L_allFilterAlert+'<br>'+
	'<input type="checkbox" name="ce" id="GCAO_s26">'+L_reduceTimeEx+'<br>'+
	'<input type="checkbox" name="nq" id="GCAO_s30">'+L_questOpt+'<br>'+
	'<input type="checkbox" name="fm" id="GCAO_s29">'+L_forumMessageOpt+'<br>'+
	'<input type="checkbox" name="wd" id="GCAO_s31">'+L_weaponAlertOpt+'<br>'+
	'<input type="checkbox" name="pa" id="GCAO_s44">'+L_packageAlertOpt+'<br>'+
	'<input type="checkbox" name="fr" id="GCAO_s50"><font color="red">[BETA] </font>'+L_fightReminder+'<br>'+
	'<br><b>- '+L_titleSettings+':</b><br>'+
	'<input type="checkbox" name="ta" id="GCAO_s54">'+L_enableTitle+'<br>'+
	'<input type="checkbox" name="tb" id="GCAO_s55" style="margin-'+GCAO_left+':20px;">'+L_showLogoTitle+'<br>'+
	'<input type="checkbox" name="tc" id="GCAO_s56" style="margin-'+GCAO_left+':40px;">'+L_showServerTitle+'<br>'+
	'<font style="margin-'+GCAO_left+':20px;">'+L_customTitleType+': <select name="ctt" id="GCAO_ctt"><option value="0" id="ct_0">'+L_playersGold+'</option><option value="1" id="ct_1">'+L_expedition+' ('+L_time+')</option><option value="2" id="ct_2">'+L_dungeon+' ('+L_time+')</option><option value="3" id="ct_3">'+L_arena.toLowerCase()+' ('+L_time+')</option><option value="4" id="ct_4">'+L_turma+' ('+L_time+')</option></select></font><br>'+
	'<input type="checkbox" name="td" id="GCAO_s57" style="margin-'+GCAO_left+':40px;">'+L_enableTitlePoints+'<br>'+
	'<br><b>- '+L_titleImages+':</b><br>'+
	'<input type="checkbox" name="pi" id="GCAO_s10">'+L_enImages+'<br>'+
	'<input type="checkbox" name="cm" id="GCAO_s59" style="margin-'+GCAO_left+':20px;">'+L_showCustomsTitle+'<br>'+	
	'<br><b>- '+L_otherSettings+':</b><br>'+
	'<input type="checkbox" name="ms" id="GCAO_s9">'+L_msgchangesOpt+'<br>'+
	'<input style="margin-'+GCAO_left+':20px;" type="checkbox" name="bb" id="GCAO_s34">'+L_enBBCODE+'<br>'+
	'<span style="display:none;"><input type="checkbox" name="ch" id="GCAO_s36">'+L_enChat+'<br></span>'+
	'<input type="checkbox" name="rt" id="GCAO_s37">'+L_enRememberTabs+'<br>'+
	'<input type="checkbox" name="dc" id="GCAO_s24">'+L_disPackageCounters+'<br>'+
	'<input type="checkbox" name="id" id="GCAO_s21">'+L_disID+'<br>'+
	'<input type="checkbox" name="dh" id="GCAO_s23">'+L_disHeal+'<br>'+
	'<input type="checkbox" name="ba" id="GCAO_s12">'+L_disTrainingChages+'<br>'+
	'<input type="checkbox" name="hi" id="GCAO_s13">'+L_enHighlight+'<br>'+
	'<input type="checkbox" name="lp" id="GCAO_s42">'+L_foodBackColor+'<br>'+
	'<input type="checkbox" name="fi" id="GCAO_s14">'+L_enStyleFixes+'<br>'+
	'<input type="checkbox" name="nm" id="GCAO_s32">'+L_showNewMessages+'<br>'+
	'<font style="margin-'+GCAO_left+':5px;">'+L_customCursor+': <select name="cu" id="GCAO_cu"><option value="0" id="cu_0">Default</option><option value="1" id="cu_1">WoW</option><option value="2" id="cu_2">Oxygen Black</option><option value="3" id="cu_3">Oxygen White</option><option value="4" id="cu_4">Sword</option></select></font><br>'+
	'<br><b>- '+L_speedSettings+':</b><br>'+
	'<input type="checkbox" name="sp" id="GCAO_s15">'+L_stopPulling+'<br><b style="margin-'+GCAO_left+':20px;">'+L_willStop+'</b>:<br><font style="margin-'+GCAO_left+':20px;">Simulator, new forum message alert, weapon down alert</font><br>'+
	'<br><b>- '+L_bugSettings+':</b><br>'+
	'<input type="checkbox" name="sb" id="GCAO_s45">'+L_showBugReports+'<br>'+
	'<input type="checkbox" name="rs" id="GCAO_s1">'+L_autoReportBugs+'<br>'+
	''+
	'<br><br><input class="button2" value="'+L_Save+'" type="button" id="saveGCAOstats"/>' +
	'<input style="margin-'+GCAO_left+':44px;" type="button" class="button1" onclick="document.getElementById(\'title\').innerHTML=\''+L_aboutTitle+'\';document.getElementById(\'Settings\').style.display=\'none\';document.getElementById(\'AboutUs\').style.display=\'block\';" value="'+L_AboutUs+'"/>'+
	'<input style="margin-'+GCAO_left+':44px;display:none;" type="button" class="button2" onclick="document.getElementById(\'title\').innerHTML=\'Gladiatus Crazy Add On News\';document.getElementById(\'Settings\').style.display=\'none\';document.getElementById(\'News\').style.display=\'block\';" value="News"/>'+
	'</span><span id="AboutUs" style="display:none;">'+
	'<b>- '+L_descriptionTitle+':</b>'+
	'<br>'+L_description+
	'<br><br><b>- '+L_Programmers+':</b><br> &bull; GreatApo<br> &bull; DarkThanos<br> &bull; djor'+
	'<br><br><b>- '+L_Translators+':</b><br> &bull; [English] GreatApo<br> &bull; [Greek] GreatApo & DarkThanos<br> &bull; [French] djor<br> &bull; [Latvian] redpepper007 <br> &bull; [German] Flaminius (s1), chrome (s3), terror.G. (s3) and Benschi86 <br> &bull; [Dutch] Homerus <br> &bull; [Hungarian] h2o <br> &bull; [Danish] Patrick Randrup Klζbel <br> &bull; [Bulgarian] Jivko Ianev <br> &bull; [Italian] tiberius8 <br> &bull; [Polish] Cysiek <br> &bull; [Persian] PersiaPrince <br>  &bull; [Portuguese] Brutuz <br>  &bull; [Czech] WiLLsTeiN <br>  &bull; [Russian] Мелкий <br>  &bull; [Estonian] Cougar'+
	'<br><br><b>- '+L_Hostpage+':</b> <a href="http://apo.users.uth.gr/index.php?s=gca" target="_blank">apo.users.uth.gr</a>'+
	'<br><br><b>- '+L_ContactUs+':</b>'+
	'<br> '+L_Contact1+
	'<br> '+L_Contact2+
	'<br> '+L_Contact3+
	'<br><br><b>- '+L_thanksTo+':</b><br><div style="padding-'+GCAO_left+':20px;"><b>'+L_MonsterHunters+':</b><br>maximus48[FR], snow[FR], Zafistus[FR], pendu[FR], Nls_01[FR], The-Achille[FR], Jinsu[FR], Rincevent[FR], @roi-guerrier@[FR], Neox[FR], naruto12121998[FR], chupadu84[FR], tituslegrand[FR], Spli[FR], stxr[GR], imbri[US], brich21[US], cody6052[US], Baleful[US]'+
	'<br><b>'+L_ItemHunters+':</b><br>gstefan[GR], Despistado[S]</div>'+
	'<br><input class="button2" value="'+L_Settings+'" type="button" onclick="document.getElementById(\'title\').innerHTML=\''+L_GCASettings+'\';document.getElementById(\'AboutUs\').style.display=\'none\';document.getElementById(\'Settings\').style.display=\'block\';"/>' +
	'<input style="margin-'+GCAO_left+':44px;" type="button" class="button1 disabled" disabled="disabled" value="'+L_AboutUs+'"/>'+
	'<input style="margin-'+GCAO_left+':44px;display:none;" type="button" class="button2" onclick="document.getElementById(\'title\').innerHTML=\'Gladiatus Crazy Add On News\';document.getElementById(\'AboutUs\').style.display=\'none\';document.getElementById(\'News\').style.display=\'block\';" value="News"/>'+
	'</span>'+
	'<span id="News" style="display:none;">'+
	'<span id="NewsContent"></span>'+
	'<br><br><input class="button2" value="'+L_Settings+'" type="button" onclick="document.getElementById(\'title\').innerHTML=\''+L_GCASettings+'\';document.getElementById(\'News\').style.display=\'none\';document.getElementById(\'Settings\').style.display=\'block\';"/>' +
	'<input style="margin-'+GCAO_left+':44px;" type="button" class="button1" onclick="document.getElementById(\'title\').innerHTML=\''+L_aboutTitle+'\';document.getElementById(\'News\').style.display=\'none\';document.getElementById(\'AboutUs\').style.display=\'block\';" value="'+L_AboutUs+'"/>'+
	'<input style="margin-'+GCAO_left+':44px;" type="button" class="button2 disabled" disabled="disabled" value="News"/>'+
	'</span>'+
	'</div></div>'+
	'<br><div class="title_box"><div class="title_inner" id="title">'+L_donateTitle+'</div></div>'+
	'<div class="title2_box"><div class="title2_inner">'+
	'<p>'+L_donateText+' :)'+
	'<br><center><form border="0" action="https://www.paypal.com/cgi-bin/webscr" method="post">'+
	'<input type="hidden" name="cmd" value="_s-xclick">'+
	'<input type="hidden" name="hosted_button_id" value="NLTXXPMHCVLYC">'+
	'<input type="image" style="border:0px solid black;" src="'+img_donateButton+'" name="submit" alt="PayPal - The safer, easier way to pay online!">'+
	'<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1">'+
	'</form></center><br/>We also accept <a target="_blank" href="https://coupon.gameforge.com/">Gameforge Coupons</a> :P</p>'+
	'<br/><p><b>Like us on FaceBook</b><br/>'+
	'<a style="text-decoration:none;color:black;" href="http://www.facebook.com/GladiatusCrazyAddOn" target="_blank">http://www.facebook.com/GladiatusCrazyAddOn</a>'+
	'<iframe scrolling="no" style="border: medium none; overflow: hidden; height: 40px; width: 480px;" src="http://www.facebook.com/plugins/like.php?api_key=113869198637480&amp;channel_url=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D5%23cb%3Df20dc8ca581075%26origin%3Dhttp%253A%252F%252Fdevelopers.facebook.com%252Ff3b80e974e577b8%26domain%3Ddevelopers.facebook.com%26relation%3Dparent.parent&amp;extended_social_context=false&amp;font=tahoma&amp;href=http%3A%2F%2Fwww.facebook.com%2FGladiatusCrazyAddOn&amp;layout=standard&amp;locale=el_GR&amp;node_type=link&amp;sdk=joey&amp;send=false&amp;show_faces=false&amp;width=480"></iframe></p></div></div>';
	document.getElementById('content').appendChild(settingsDiv);
	
	if(GM_getValue('bu', true) == true){document.getElementById('GCAO_s2').checked=true;}
	if(GM_getValue('au', true) == true){document.getElementById('GCAO_s3').checked=true;}
	if(GM_getValue('af', true) == true){document.getElementById('GCAO_s4').checked=true;}
	if(GM_getValue('cb', true) == true){document.getElementById('GCAO_s5').checked=true;}
	if(GM_getValue('ml', true) == true){document.getElementById('GCAO_s6').checked=true;}
	if(GM_getValue('an', true) == true){document.getElementById('GCAO_s7').checked=true;}
	if(GM_getValue('il', true) == true){document.getElementById('GCAO_s8').checked=true;}
	if(GM_getValue('ms', true) == true){document.getElementById('GCAO_s9').checked=true;}
	if(GM_getValue('pi', true) == true){document.getElementById('GCAO_s10').checked=true;}
	if(GM_getValue('si', true) == true){document.getElementById('GCAO_s11').checked=true;}
	if(GM_getValue('ba', true) == true){document.getElementById('GCAO_s12').checked=true;}
	if(GM_getValue('hi', true) == true){document.getElementById('GCAO_s13').checked=true;}
	if(GM_getValue('fi', true) == true){document.getElementById('GCAO_s14').checked=true;}
	if(GM_getValue('sp', false) == true){document.getElementById('GCAO_s15').checked=true;}
	if(GM_getValue('op', true) == true){document.getElementById('GCAO_s16').checked=true;}
	if(GM_getValue('li', true) == true){document.getElementById('GCAO_s17').checked=true;}
	if(GM_getValue('sf', 1000) != 1000){document.getElementById('GCAO_sf').value = GM_getValue('sf', 1000);}
	if(GM_getValue('st', true) == true){document.getElementById('GCAO_s18').checked=true;}
	if(GM_getValue('sa', true) == true){document.getElementById('GCAO_s19').checked=true;}
	if(GM_getValue('gg', true) == true){document.getElementById('GCAO_s20').checked=true;}
	if(GM_getValue('id', false) == true){document.getElementById('GCAO_s21').checked=true;}
	if(GM_getValue('gs', true) == true){document.getElementById('GCAO_s22').checked=true;}
	if(GM_getValue('dh', true) == true){document.getElementById('GCAO_s23').checked=true;}
	if(GM_getValue('dc', true) == true){document.getElementById('GCAO_s24').checked=true;}
	if(GM_getValue('ca', true) == true){document.getElementById('GCAO_s25').checked=true;}
	if(GM_getValue('ce', true) == true){document.getElementById('GCAO_s26').checked=true;}
	if(GM_getValue('pr', true) == true){document.getElementById('GCAO_s27').checked=true;}
	if(GM_getValue('ea', false) == true){document.getElementById('GCAO_s28').checked=true;}
	if(GM_getValue('fm', false) == true){document.getElementById('GCAO_s29').checked=true;}
	if(GM_getValue('nq', true) == true){document.getElementById('GCAO_s30').checked=true;}
	if(GM_getValue('wd', true) == true){document.getElementById('GCAO_s31').checked=true;}
	if(GM_getValue('rr', false) == true){document.getElementById('GCAO_s33').checked=true;}
	if(GM_getValue('bb', false) == true){document.getElementById('GCAO_s34').checked=true;}
	if(GM_getValue('at', false) == true){document.getElementById('GCAO_s35').checked=true;}
	if(GM_getValue('ch', true) == true){document.getElementById('GCAO_s36').checked=true;}
	if(GM_getValue('rt', true) == true){document.getElementById('GCAO_s37').checked=true;}
	if(GM_getValue('mc', true) == true){document.getElementById('GCAO_s38').checked=true;}
	if(GM_getValue('hg', true) == true){document.getElementById('GCAO_s39').checked=true;}
	if(GM_getValue('sc', true) == true){document.getElementById('GCAO_s40').checked=true;}
	if(GM_getValue('gm', true) == true){document.getElementById('GCAO_s41').checked=true;}
	if(GM_getValue('lp', true) == true){document.getElementById('GCAO_s42').checked=true;}
	if(GM_getValue('kt', false) == true){document.getElementById('GCAO_s43').checked=true;}
	if(GM_getValue('pa', false) == true){document.getElementById('GCAO_s44').checked=true;}
	if(GM_getValue('sb', false) == true){document.getElementById('GCAO_s45').checked=true;}
	if(GM_getValue('rs', true) == true){document.getElementById('GCAO_s1').checked=true;}
	if(GM_getValue('nm', false) == true){document.getElementById('GCAO_s32').checked=true;}
	if(GM_getValue('ap', true) == true){document.getElementById('GCAO_s46').checked=true;}
	if(GM_getValue('cf', true) == true){document.getElementById('GCAO_s47').checked=true;}
	if(GM_getValue('fc', true) == true){document.getElementById('GCAO_s48').checked=true;}
	if(GM_getValue('lv', true) == true){document.getElementById('GCAO_s49').checked=true;}
	if(GM_getValue('fr', false) == true){document.getElementById('GCAO_s50').checked=true;}
	if(GM_getValue('qm', true) == true){document.getElementById('GCAO_s51').checked=true;}
	if(GM_getValue('dt', true) == true){document.getElementById('GCAO_s52').checked=true;}
	if(GM_getValue('ct', true) == true){document.getElementById('GCAO_s53').checked=true;}
	if(GM_getValue('ta', true) == true){document.getElementById('GCAO_s54').checked=true;}
	if(GM_getValue('tb', true) == true){document.getElementById('GCAO_s55').checked=true;}
	if(GM_getValue('tc', true) == true){document.getElementById('GCAO_s56').checked=true;}
	if(GM_getValue('td', true) == true){document.getElementById('GCAO_s57').checked=true;}
	if(GM_getValue('hb', true) == true){document.getElementById('GCAO_s58').checked=true;}
	if(GM_getValue('cm', false) == true){document.getElementById('GCAO_s59').checked=true;}
	if(GM_getValue('gf', 10) != 10){document.getElementById('GCAO_gf').value = GM_getValue('gf', 10);}
	
	document.getElementById('cu_'+GM_getValue('cu', 0)).setAttribute('selected','selected');
	document.getElementById('ct_'+GM_getValue('ctt', 0)).setAttribute('selected','selected');
}

function saveSettings(){
	var link = document.location.href;
	while(link.match(/\w\w=true/i)){
		var set = link.match(/(\w\w)=true/i)[1];
		GM_setValue(set, true);
		link = link.replace(/\w\w=true/i, '');
	}
	while(link.match(/\w\w=false/i)){
		var set = link.match(/(\w\w)=false/i)[1];
		GM_setValue(set, false);
		link = link.replace(/\w\w=false/i, '');
	}
	if(link.match(/sf=(\d+)/i)){
		var number = link.match(/sf=(\d+)/i)[1]*1;
		GM_setValue('sf', number);
		link = link.replace(/sf=(\d+)/i, '');
	}
	if(link.match(/gf=(\d+)/i)){
		var number = link.match(/gf=(\d+)/i)[1]*1;
		GM_setValue('gf', number);
		link = link.replace(/gf=(\d+)/i, '');
	}
	if(link.match(/cu=(\d+)/i)){
		var number = link.match(/cu=(\d+)/i)[1]*1;
		GM_setValue('cu', number);
		link = link.replace(/cu=(\d+)/i, '');
	}
	if(link.match(/ctt=(\d+)/i)){
		var number = link.match(/ctt=(\d+)/i)[1]*1;
		GM_setValue('ctt', number);
		link = link.replace(/ctt=(\d+)/i, '');
	}
}

function saveMePlease(){
	//check simulator fights number
	var checkNumberOfFights = document.getElementById('GCAO_sf').value+'';
	checkNumberOfFights = checkNumberOfFights.replace(/\d+/gi, "");
	if(checkNumberOfFights==''){
		if(document.getElementById('GCAO_sf').value==0){var numberOfFights = 1000;}
		else if(document.getElementById('GCAO_sf').value<=20000){var numberOfFights = document.getElementById('GCAO_sf').value;}
		else{var numberOfFights = 20000;}
	}
	else{var numberOfFights = 1000;}
	
	//check guild war list number
	var checkNumberOfFights2 = document.getElementById('GCAO_gf').value+'';
	checkNumberOfFights2 = checkNumberOfFights2.replace(/\d+/gi, "");
	if(checkNumberOfFights2==''){
		if(document.getElementById('GCAO_gf').value==0){var numberOfFights2 = 10;}
		else if(document.getElementById('GCAO_gf').value<=99){var numberOfFights2 = document.getElementById('GCAO_gf').value;}
		else{var numberOfFights2 = 99;}
	}
	else{var numberOfFights2 = 10;}
	
	
	var s="&sf="+numberOfFights;
	s+="&gf="+numberOfFights2;
	s+="&cu="+document.getElementById('GCAO_cu').value;
	s+="&ctt="+document.getElementById('GCAO_ctt').value;
	for(i=1;i<60;i++){
		var x=document.getElementById('GCAO_s'+i);
		s+="&"+x.name+"="+x.checked;
	}
	window.location=GCAO_siteurl+'mod=settings&sh='+GCAO_secureCode+'&GCAO=SaveMePlease'+s;
}

//################################################################################################################################
//## USEFULL FUNCTIONS / ΧΡΗΣΙΜΑ FUNCTION
//################################################################################################################################
//MAKE COOKIE / ΦΤΙΑΞΕ COOKIE
function Set_Cookie( name, value, expires, path, domain, secure ){
	var today = new Date();
	today.setTime( today.getTime() );
	if ( expires ){expires = expires * 1000 * 60 * 60 * 24;}
	var expires_date = new Date( today.getTime() + (expires) );
	document.cookie = name+"="+escape( value )+( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" )+( ( path ) ? ";path=" + path : "" )+( ( domain ) ? ";domain=" + domain : "" )+( ( secure ) ? ";secure" : "" );
}

//GET COOKIE / ΠΑΡΕ COOKIE
function Get_Cookie(check_name){
	var a_all_cookies = document.cookie.split( ';' );
	var a_temp_cookie = '';
	var cookie_name = '';
	var cookie_value = '';
	var b_cookie_found = false;

	for ( i = 0; i < a_all_cookies.length; i++ )
	{
		a_temp_cookie = a_all_cookies[i].split( '=' );
		cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
		if ( cookie_name == check_name )
		{
			b_cookie_found = true;
			if ( a_temp_cookie.length > 1 ){cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );}
			return cookie_value;
			break;
		}
		a_temp_cookie = null;
		cookie_name = '';
	}
	if ( !b_cookie_found ){return null;}
}

//PLAYER'S LEVEL / ΕΠΙΠΕΔΟ ΤΟΥ ΠΑΙΧΤΗ
//Command / Εντολή: var myLevel = getMyLevel();
function getMyLevel(){
	var myLevel = document.getElementById('header_values_general').getElementsByTagName('div')[5].innerHTML*1;
	return myLevel;
}

//INSERT AFTER / ΒΑΛΕ ΜΕΤΑ ΑΠΟ
//Command / Εντολή: insertAfter('newElement','targetElement');
function insertAfter(newElement,targetElement) {
	var parent = targetElement.parentNode;
	if(parent.lastchild == targetElement) {
		parent.appendChild(newElement);
	}
	else {
		parent.insertBefore(newElement, targetElement.nextSibling);
	}
}

//Add A DOT "." FOR THOUSAND, MILLION, BILLION, etc...
function dottedNumber(nbr){
	x=false;
	if(nbr<0){var x=true;nbr=0-nbr;}
	var number = ''+nbr;
	var returned = '';
	while(number.length>3){
	returned= "."+number.substring(number.length-3,number.length)+returned;
	number = number.substring(0,number.length-3);
	}
	if(number.length>0)
	returned = number+returned;
	if(x){var returned='-'+returned}
	return returned;
}

//Round a number (ex.: 1,3899 -> 1,38)
function roundNumber(x){
	x = x*(100);
	x = (x-x%1)/(100);
	return x;
}

//Convert to Unicode
function toASCII(theString){
	var asciiString = '&#';
	for (i=0;i < theString.length; i++) {
		asciiString += theString.charCodeAt(i) + '&#';
	}
	asciiString = asciiString.substr(0, asciiString.length - 2);
	return asciiString;
}

//Decode ASCII
function decodeASCII(ASCII){//String.fromCharCode(
	var decodedString = '';
	ASCII=ASCII.split('&#');
	for (i=0;i < ASCII.length; i++) {
		decodedString += String.fromCharCode(ASCII[i]);
	}
	return decodedString;
}

function secondsToTime(secs){
    var hours = Math.floor(secs / (60 * 60));
   
    var divisor_for_minutes = secs % (60 * 60);
    var minutes = Math.floor(divisor_for_minutes / 60);
 
    var divisor_for_seconds = divisor_for_minutes % 60;
    var seconds = Math.ceil(divisor_for_seconds);
   
    var obj = {
        "h": hours,
        "m": minutes,
        "s": seconds
    };
    return obj;
}

//################################################################################################################################
// Training Camp !
//################################################################################################################################
function training(){
	var mainnav = document.getElementById('mainnav');
	var newTab = document.createElement('li');
	newTab.className='pngfix';
	newTab.innerHTML = '<a href="'+GCAO_siteurl+'mod=guild_training&sh='+GCAO_secureCode+'&make_simulator" style="cursor:pointer;" class="pngfix">'+L_Simulator+'</a>';
	mainnav.appendChild(newTab);
	//newTab.addEventListener('click', function(){seeSimulator();}, false);
}

function seeSimulator(){
	if(GCAO_lang=='fr'){
		var text='When you enter in the room, you see djor, one of the ancient French programmers, working over a new type of virtual fighting and training.<br>Near to him, there is a big super computer ready to create a hologram of any monster or any other player you want, in order to simulate a fight with you and display the results... <br><br>Are you ready to fight?';
		var Skill='Adresse';
		var Agility='Agilité';
		var Charisma='Charisme';
		var Armour='Armure';
		var Damage='Dégâts';
		var ChanceForCriticalDamage='Chance d`infliger un coup critique';
		var ChanceToBlockAHit='Chance de parer une attaque';
		var ChanceForCriticalDamage='Chance d`éviter un coup critique';
		
		var Italy='Italie';
		var Italy_1='Forêt noire';var Italy_1_1='Rat';var Italy_1_2='Lynx';var Italy_1_3='Loup';var Italy_1_4='Ours';
		var Italy_2='Port de pirates';var Italy_2_1='Esclave en fuite';var Italy_2_2='Soldat corrompu';var Italy_2_3='Assassin';var Italy_2_4='Capitaine ';
		var Italy_3='Monts Brumeux';var Italy_3_1='Recrue errante';var Italy_3_2='Harpie';var Italy_3_3='Cerbère';var Italy_3_4='Méduse';
		var Italy_4='L’antre des loups';var Italy_4_1='Sanglier';var Italy_4_2='Meute de loups';var Italy_4_3='Le loup Alpha';var Italy_4_4='Loup-garou';
		var Italy_5='Ancien temple';var Italy_5_1='Garde sectaire';var Italy_5_2='Rat-garou';var Italy_5_3='Minautore';var Italy_5_4='Seigneur minautore';
		var Italy_6='Village barbare';var Italy_6_1='Barbare';var Italy_6_2='Guerrier barbare';var Italy_6_3='Berserk';var Italy_6_4='Cador barbare';
		var Italy_7='Camp de bandits';var Italy_7_1='Soldat renégat';var Italy_7_2='Mercenaire renégat';var Italy_7_3='Assassin perfide';var Italy_7_4='Chef de bandits';
		var Germany='Germanie';
		var Germany_1='Temple souterrain';var Germany_1_1='Légionnaire';var Germany_1_2='Myrmidon';var Germany_1_3='Centurion';var Germany_1_4='Sansâme';
		var Germany_2='La forêt verte';var Germany_2_1='Sanglier géant';var Germany_2_2='Créature des marais';var Germany_2_3='Esprit des marais';var Germany_2_4='Ours-garou';
		var Germany_3='Village Maudit';var Germany_3_1='Hun';var Germany_3_2='Ancien';var Germany_3_3='Affamé';var Germany_3_4='L&#8217; Abomination';
		var Germany_4='Colline des morts';var Germany_4_1='Guerrier squelette';var Germany_4_2='Berserk squelette';var Germany_4_3='Liche';var Germany_4_4='Prince nécromant ';
		var Germany_5='Village vandale';var Germany_5_1='Guerrier vandale';var Germany_5_2='Jarl';var Germany_5_3='Batailleur ténébreux';var Germany_5_4='Chevalier de la mort';
		var Germany_6='Mine';var Germany_6_1='Garde';var Germany_6_2='Draugr';var Germany_6_3='Golem de pierre';var Germany_6_4='Guivre vorace';
		var Germany_7='Camp teutons';var Germany_7_1='Barbare';var Germany_7_2='Héros teuton';var Germany_7_3='Teuton';var Germany_7_4='Seidr';
		var Germany_8='Montagne Koman';var Germany_8_1='Infernal springbok';var Germany_8_2='Dent de Sabre';var Germany_8_3='Dragonnet';var Germany_8_4='Dragon';
		var Africa='Afrique';
		var Africa_1='Temple Vaudou';var Africa_1_1='Cobra';var Africa_1_2='Scorpion géant';var Africa_1_3='Momie réveillée';var Africa_1_4='Prêtre Seth';
		var Africa_2='Pont';var Africa_2_1='Percepteur';var Africa_2_2='Anthropophage';var Africa_2_3='Guerrier tribal ';var Africa_2_4='Chaman ostéomancien';
		var Africa_3='Caverne sanglante';var Africa_3_1='Loup sanguinaire';var Africa_3_2='Scarabée géant';var Africa_3_3='Danseur de feu';var Africa_3_4='Démon de feu';
		var Africa_4='Port perdu';var Africa_4_1='Crocodile';var Africa_4_2='Porteur mort-vivant';var Africa_4_3='Serpent aquatique géant';var Africa_4_4='Mokélé-Mbembé';
		var Africa_5='Tribu Umpokta';var Africa_5_1='Guerrier tribal';var Africa_5_2='Sorcier tribal';var Africa_5_3='Guerrier des esprits';var Africa_5_4='Grand prêtre Seth';
		var Africa_6='Caravane';var Africa_6_1='L&#8217; Espion';var Africa_6_2='Garde de caravane';var Africa_6_3='Garde d&#8217; élite ';var Africa_6_4='Marchand d&#8217; esclave';
		var Africa_7='Oasis Mesoai';var Africa_7_1='Éléphant';var Africa_7_2='Guépard';var Africa_7_3='Lion démoniaque';var Africa_7_4='Éléphant démoniaque ';
		var Africa_8='Falaise des sacrifices';var Africa_8_1='Antilope maudite';var Africa_8_2='Araignée géante';var Africa_8_3='Chaman';var Africa_8_4='Grand Chaman';
	}
	else if(GCAO_lang=='gr'){
		var text='Μόλις μπεις στο δωμάτιο, βλέπεις τον djor, έναν από τους αρχαίους Γάλλους προγραμματιστές, που δουλεύει πάνω σε ένα νέο είδος εικονικών μαχών και εκπαιδεύσεων.<br>Κοντά του βρίσκεται ένας super υπολογιστής έτοιμος να δημιουργήσει ολόγράμμα οποιουδείποτε τέρατος ή μονομάχου  εσύ θές, ετσι ώστε να προσωμοιώσει μια μάχη με εσένα και να προβάλει τα αποτελέσματα... <br><br>Είσαι έτοιμος για μάχη;';
		var Skill='Ικανότητα';
		var Agility='Επιδεξιότητα';
		var Charisma='Χάρισμα';
		var Armour='Πανοπλία';
		var Damage='Ζημιά';
		var ChanceForCriticalDamage='Πιθανότητα κρίσιμης ζημιάς';
		var ChanceToBlockAHit='Πιθανότητα να μπλοκάρεις το χτύπημα';
		var ChanceForCriticalDamage='Πιθανότητα αποφυγής κρίσιμων χτυπημάτων';
		
		var Italy='Ιταλία';
		var Italy_1='Σκοτεινό Δάσος';var Italy_1_1='Αρουραίος';var Italy_1_2='Λύγκας';var Italy_1_3='Λύκος';var Italy_1_4='Αρκούδα';
		var Italy_2='Πειρατικό λιμάνι';var Italy_2_1='Φυγάς σκλάβος';var Italy_2_2='Διεφθαρμένος στ...';var Italy_2_3='Δολοφόνος';var Italy_2_4='Αρχηγός';
		var Italy_3='Ομιχλώδη βουνά';var Italy_3_1='Λιποτάκτης';var Italy_3_2='Άρπυια';var Italy_3_3='Κέρβερος';var Italy_3_4='Μέδουσα';
		var Italy_4='Λυκοφωλιά';var Italy_4_1='Αγριόχοιρος';var Italy_4_2='Αγέλη λύκων';var Italy_4_3='Άλφα λύκος';var Italy_4_4='Λυκάνθρωπος';
		var Italy_5='Αρχαίος Ναός';var Italy_5_1='Φρουρός λάτρη';var Italy_5_2='Αρουράνθρωπος';var Italy_5_3='Μινώταυρος';var Italy_5_4='Αρχιμινώταυρος';
		var Italy_6='Βαρβαρικό Χωριό';var Italy_6_1='Βάρβαρος';var Italy_6_2='Πολεμιστής Βαρβ...';var Italy_6_3='Μαινόμενος';var Italy_6_4='Αρχηγός Βαρβάρω...';
		var Italy_7='Κρυψώνα ληστών';var Italy_7_1='Αποστάτης';var Italy_7_2='Αποστάτης μισθο...';var Italy_7_3='Φονιάς';var Italy_7_4='Αρχιληστής';
		var Germany='Γερμανία';
		var Germany_1='Ναός της Σπηλιάς';var Germany_1_1='Λεγεωνάριος';var Germany_1_2='Μυρμιδόνας';var Germany_1_3='Εκατόνταρχος';var Germany_1_4='Άψυχος';
		var Germany_2='Το πράσινο δάσος';var Germany_2_1='Γιγάντιος αγριό...';var Germany_2_2='Τέρας των βάλτω...';var Germany_2_3='Πνεύμα των βάλτ...';var Germany_2_4='Αρκουδάνθρωπος';
		var Germany_3='Καταραμένο Χωριό';var Germany_3_1='Ούννος';var Germany_3_2='Υπέργηρος';var Germany_3_3='Απέθαντος';var Germany_3_4='Στυγερότητα';
		var Germany_4='Λόφος του Θανάτου';var Germany_4_1='Σκελετός - πολε...';var Germany_4_2='Μαινόμενος σκελ...';var Germany_4_3='Βρικόλακας ';var Germany_4_4='Ηγεμόνας νεκρομ...';
		var Germany_5='Χωριό βανδάλων';var Germany_5_1='Πολεμιστής Βανδ...';var Germany_5_2='Κόμης';var Germany_5_3='Σκοτεινός υπέρμ...';var Germany_5_4='Ιππότης Θανάτου';
		var Germany_6='Ορυχείο';var Germany_6_1='Φύλακας';var Germany_6_2='Draug';var Germany_6_3='Πέτρινο γκόλεμ';var Germany_6_4='Νυχοσκούληκο';
		var Germany_7='Στρατόπεδο Τευτόνων';var Germany_7_1='Άγριος';var Germany_7_2='Τεύτονας ήρωας';var Germany_7_3='Αρχηγός Τευτόνω...';var Germany_7_4='Seidr';
		var Germany_8='Βουνό Koman';var Germany_8_1='Αντιλόπη Κολάσε...';var Germany_8_2='Τίγρη με μυτερή...';var Germany_8_3='Μωρό Δράκος';var Germany_8_4='Δράκος';
		var Africa='Αφρική';
		var Africa_1='Ναός Βουντού';var Africa_1_1='Κόμπρα';var Africa_1_2='Γιγάντιος Σκορπ...';var Africa_1_3='Αναστημένη μούμ...';var Africa_1_4='Ιερέας Seth';
		var Africa_2='Γέφυρα';var Africa_2_1='Συλλέκτης φόρων';var Africa_2_2='Ανθρωποφάγος';var Africa_2_3='Πολεμιστής φυλή...';var Africa_2_4='Σαμάνος κοκάλων';
		var Africa_3='Σπηλιά αίματος';var Africa_3_1='Αιμόλυκος';var Africa_3_2='Γιγάντιο Σκαθάρ...';var Africa_3_3='Χορευτής φωτιάς';var Africa_3_4='Δαίμονας φωτιάς';
		var Africa_4='Χαμένο λιμάνι';var Africa_4_1='Κροκόδειλος';var Africa_4_2='Απέθαντος κομισ...';var Africa_4_3='Γιγάντια ύδρα';var Africa_4_4='Σαυρόποδο';
		var Africa_5='Φυλή Umpokta';var Africa_5_1='Πολεμιστής φυλή... ';var Africa_5_2='Μάγος φυλής';var Africa_5_3='Πολεμιστής πνεύ...';var Africa_5_4='Αρχιερέας Seth';
		var Africa_6='Καραβάνι';var Africa_6_1='Κατάσκοπος';var Africa_6_2='Φύλακας καραβαν...';var Africa_6_3='Επίλεκτος φύλακ... ';var Africa_6_4='Δουλέμπορος';
		var Africa_7='Όαση Mesoai';var Africa_7_1='Ελέφαντας';var Africa_7_2='Τσιτάχ';var Africa_7_3='Δαιμονικό λιοντάρι';var Africa_7_4='Δαιμονικός ελέφ...';
		var Africa_8='Άλτης λόφων';var Africa_8_1='Καταραμένη αντι...';var Africa_8_2='Γιγάντια αράχνη';var Africa_8_3='Σαμάνος';var Africa_8_4='Αρχισαμάνος';
	}
	else if(GCAO_lang=='de'){
		var text='Als Du den Raum betrittst, erblickst Du djor, einen der uralten französischen Programmierer, der an einer neuen Art virtueller Kämpfe und Trainings arbeitet.<br>In seiner unmittelbaren Nähe steht ein Supercomputer, der auf Wunsch Hologramme eines jeden Monsters oder anderen Spielers darzustellen vermag, um einen Kampf mit Dir zu simulieren und die Ergebnisse anzuzeigen...<br><br>Bist Du bereit, zu kämpfen?';
		var Skill='Geschicklichkeit';
		var Agility='Beweglichkeit';
		var Charisma='Charisma';
		var Armour='Rüstung';
		var Damage='Schaden';
		var ChanceForCriticalDamage='Chance für kritischen Schaden';
		var ChanceToBlockAHit='Chance einen Schlag zu blocken';
		var ChanceForCriticalDamage='Chance kritische Treffer zu vermeiden';

		var Italy='Italien';
		var Italy_1='Düsterwald';var Italy_1_1='Ratte';var Italy_1_2='Luchs';var Italy_1_3='Wolf';var Italy_1_4='Bär';
		var Italy_2='Piratenhafen';var Italy_2_1='Entlaufener Sklave';var Italy_2_2='Korrupter Soldat';var Italy_2_3='Mörder';var Italy_2_4='Kapitän';
		var Italy_3='Nebelgebirge';var Italy_3_1='Flüchtiger Rekrut';var Italy_3_2='Harpie';var Italy_3_3='Cerberus';var Italy_3_4='Medusa';
		var Italy_4='Wolfshöhle';var Italy_4_1='Wildschwein';var Italy_4_2='Wolfsrudel';var Italy_4_3='Alpha-Wolf';var Italy_4_4='Werwolf';
		var Italy_5='Antiker Tempel';var Italy_5_1='Kultisten-Wache';var Italy_5_2='Werratte';var Italy_5_3='Minotaurus';var Italy_5_4='Minotauren-Chef';
		var Italy_6='Barbarendorf';var Italy_6_1='Barbar';var Italy_6_2='Barbarenkrieger';var Italy_6_3='Berserker';var Italy_6_4='Barbarenhäuptling';
		var Italy_7='Banditencamp';var Italy_7_1='Abtrünniger Soldat';var Italy_7_2='Abtrünniger Söldner';var Italy_7_3='Meuchelmörder';var Italy_7_4='Banditen-Chef';
		var Germany='Germanien';
		var Germany_1='Höhlentempel';var Germany_1_1='Legionär';var Germany_1_2='Myrmidone';var Germany_1_3='Centurio';var Germany_1_4='Seelenloser';
		var Germany_2='Der grüne Wald';var Germany_2_1='Riesenwildschwein';var Germany_2_2='Sumpfmonster';var Germany_2_3='Sumpfgeist';var Germany_2_4='Werbär';
		var Germany_3='Verfluchtes Dorf';var Germany_3_1='Hunne';var Germany_3_2='Uralter';var Germany_3_3='Nachzehrer';var Germany_3_4='Abscheulichkeit';
		var Germany_4='Totenhügel';var Germany_4_1='Skelettkrieger';var Germany_4_2='Skelettberserker';var Germany_4_3='Lich';var Germany_4_4='Nekromantenfürst';
		var Germany_5='Wandalendorf';var Germany_5_1='Wandalenkrieger';var Germany_5_2='Jarl';var Germany_5_3='Finsterer Streiter';var Germany_5_4='Todesritter';
		var Germany_6='Mine';var Germany_6_1='Wächter';var Germany_6_2='Draug';var Germany_6_3='Steingolem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Teutonenlager';var Germany_7_1='Wilder';var Germany_7_2='Teutonenheld';var Germany_7_3='Teutonenherr';var Germany_7_4='Seidr';
		var Germany_8='Berg Koman';var Germany_8_1='Höllischer Springbock';var Germany_8_2='Säbelzahntiger';var Germany_8_3='Drachenwelpe';var Germany_8_4='Drache';
		var Africa='Afrika';
		var Africa_1='Voodootempel';var Africa_1_1='Kobra';var Africa_1_2='Riesenskorpion';
		var Africa_1_3='Erwachte Mumie';var Africa_1_4='Seth-Priester';
		var Africa_2='Brücke';var Africa_2_1='Steuereintreiber';var Africa_2_2='Menschenfresser';var Africa_2_3='Stammeskrieger';var Africa_2_4='Knochenschamane';
		var Africa_3='Bluthöhle';var Africa_3_1='Blutwolf';var Africa_3_2='Riesenkäfer';var Africa_3_3='Feuertänzer';var Africa_3_4='Feuerdämon';
		var Africa_4='Verlorener Hafen';var Africa_4_1='Krokodil';var Africa_4_2='Untoter Träger';var Africa_4_3='Riesenwasserschlange';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Umpoktastamm';var Africa_5_1='Stammeskrieger';var Africa_5_2='Stammeszauberer';var Africa_5_3='Geisterkrieger';var Africa_5_4='Seth-Hohepriester';
		var Africa_6='Karawame';var Africa_6_1='Scout';var Africa_6_2='Karawanen-Wächter';var Africa_6_3='Elite-Wächter';var Africa_6_4='Sklavenhändler';
		var Africa_7='Mesoai-Oase';var Africa_7_1='Elefant';var Africa_7_2='Gepard';var Africa_7_3='Dämonen-Löwe';var Africa_7_4='Elefantendämon';
		var Africa_8='Klippspringer';var Africa_8_1='Verfluchte Antilope';var Africa_8_2='Riesenspinne';var Africa_8_3='Schamane';var Africa_8_4='Hoher Schamane';
	}
	else if(GCAO_lang=='nl'){
		var text='Als je een ruimte binnentreed, zie je djor een oude franse programmeur, hij werkt aan een nieuwe manier van virtueel vechten en trainen.<br>In zijn buurt staat een supercomputer die klaar is om een hologram te maken van ieder monster of tegenstander die jij maar wilt, zodat jij  gevechten kan simuleren en je de resultaten kan zien....<br><br>Ben je klaar om te vechten?';
		var Skill='Vaardigheid';
		var Agility='Snelheid';
		var Charisma='Charisma';
		var Armour='Bescherming';
		var Damage='Schade';
		var ChanceForCriticalDamage='Kans voor kritieke schade';
		var ChanceToBlockAHit='Blokkeer waarde';
		var ChanceForCriticalDamage='Kans om gevaarlijke slagen te ontwijken';

		var Italy='Italy';
		var Italy_1='Donkere woud';var Italy_1_1='Rat';var Italy_1_2='Lynx';var Italy_1_3='Wolf';var Italy_1_4='Beer';
		var Italy_2='Piratenhaven';var Italy_2_1='Gevluchte Slaaf';var Italy_2_2='Corrupte Soldaat';var Italy_2_3='Sluipmoordenaar';var Italy_2_4='Kapitein ';
		var Italy_3='Mistige Bergen';var Italy_3_1='Ontwijkende Rekruut';var Italy_3_2='Harpy';var Italy_3_3='Cerberus';var Italy_3_4='Medusa';
		var Italy_4='Wolvengrot';var Italy_4_1='Wild Zwijn';var Italy_4_2='Roedel Wolven';var Italy_4_3='Alfawolf';var Italy_4_4='Weerwolf';
		var Italy_5='Oude Tempel';var Italy_5_1='Sekte Wachter';var Italy_5_2='Weerrat';var Italy_5_3='Minotaurus';var Italy_5_4='Minotaurus Baas';
		var Italy_6='Barbaren Dorp';var Italy_6_1='Barbaar';var Italy_6_2='Barbaren Krijger';var Italy_6_3='Woesteling';var Italy_6_4='Barbaren Baas';
		var Italy_7='Bandietenkamp';var Italy_7_1='Afvallige Soldaat';var Italy_7_2='Afvallige Huurling';var Italy_7_3='Sluipmoordenaar';var Italy_7_4='Bandieten Baas';
		var Germany='Germania';
		var Germany_1='Grottentempel';var Germany_1_1='Legionair';var Germany_1_2='Myrmidon';var Germany_1_3='Centurion';var Germany_1_4='Zielloos';
		var Germany_2='Het groene woud';var Germany_2_1='Reuze Wild Zwijn';var Germany_2_2='Moeras Heer';var Germany_2_3='Moeras Geest';var Germany_2_4='Weerbeer';
		var Germany_3='Vervloekt Dorp';var Germany_3_1='Hun';var Germany_3_2='Aloude';var Germany_3_3='Nachzehrer';var Germany_3_4='Abominatie';
		var Germany_4='Dodenheuvel';var Germany_4_1='Skelet Strijder';var Germany_4_2='Skelet Woesteling';var Germany_4_3='Lich';var Germany_4_4='Dodenbezweerder Prins';
		var Germany_5='Vandalendorp';var Germany_5_1='Vandaal Krijger';var Germany_5_2='Jarl';var Germany_5_3='Duistere Vechter';var Germany_5_4='Ridder des Doods';
		var Germany_6='Mijn';var Germany_6_1='Bewaker';var Germany_6_2='Draug';var Germany_6_3='Stenen Golem';var Germany_6_4='Tatzelworm';
		var Germany_7='Teutonen Kamp';var Germany_7_1='Barbaar';var Germany_7_2='Held der Teutonen';var Germany_7_3='Heer der Teutonen';var Germany_7_4='Seidr';
		var Germany_8='Koman Berg';var Germany_8_1='Demonische Springbok';var Germany_8_2='Sabeltandtijger';var Germany_8_3='Draken Welp';var Germany_8_4='Draak';
		var Africa='Africa';
		var Africa_1='Voodoo Tempel';var Africa_1_1='Cobra';var Africa_1_2='Reuzen Schorpioen';var Africa_1_3='Ontwaakte Mummy';var Africa_1_4='Priester van Seth';
		var Africa_2='Brug';var Africa_2_1='Publicanus';var Africa_2_2='Kannibaal';var Africa_2_3='Stam Krijger';var Africa_2_4='Botten Sjamaan';
		var Africa_3='Bloed Grot';var Africa_3_1='Bloedwolf';var Africa_3_2='Reuze Kever';var Africa_3_3='Vuurdanser';var Africa_3_4='Vuurdemon';
		var Africa_4='Verloren Haven';var Africa_4_1='Krokodil';var Africa_4_2='Ondode Drager';var Africa_4_3='Reuze Waterslang';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Umpokta Stam';var Africa_5_1='Stam krijger';var Africa_5_2='Stam Magiër';var Africa_5_3='Geest Krijger';var Africa_5_4='Hoge Priester van Seth';
		var Africa_6='Karavaan';var Africa_6_1='Spion';var Africa_6_2='Karavaan Bewaker';var Africa_6_3='Elite Bewaker';var Africa_6_4='Slavenhandelaar';
		var Africa_7='Mesoai-Oase';var Africa_7_1='Olifant';var Africa_7_2='Cheetah';var Africa_7_3='Demonische Leeuw';var Africa_7_4='Demonische Olifant';
		var Africa_8='Klifspringer';var Africa_8_1='Vervloekte Antilope';var Africa_8_2='reuze Spin';var Africa_8_3='Sjamaan';var Africa_8_4='Hoge Sjamaan';
	}
	else if(GCAO_lang=='hu'){
		var text='Mikor a szobába lépsz megpillantod djor-t, egyikét az ősi francia programozóknak, aki újabb virtuális gyakorló, ésharci szimulátoron dolgozik.<br>A közelében egy hatalmas szuperszámítógép foglalja a helyet, mely kész rá, hogy megjelenítsen bármilyen szörnyet, vagy játékost, amivel így bátran összemérheted az erődet. A harc végén pedig láthatod a csata statisztikáit. <br><br>Készen állsz a harcra?';
		var Skill='képzettség';
		var Agility='fürgeség';
		var Charisma='karizma';
		var Armour='páncél';
		var Damage='sebzés';
		var ChanceForCriticalDamage='Kritikus ütés esélye';
		var ChanceToBlockAHit='Kritikus ütés blokkolásának esélye';
		var ChanceForCriticalDamage='Kritikus ütés elkerülésének esélye';

		var Italy='Olaszország';
		var Italy_1='Sötét erdő';var Italy_1_1='Patkány';var Italy_1_2='Hiúz';var Italy_1_3='Farkas';var Italy_1_4='Medve';
		var Italy_2='Kalóz kikötő';var Italy_2_1='Szökött rabszolga';var Italy_2_2='Korrupt katona';var Italy_2_3='Bérgyilkos';var Italy_2_4='Kapitány';
		var Italy_3='Ködös hegyek';var Italy_3_1='Eltűnt újonc';var Italy_3_2='Hárpia';var Italy_3_3='Cerberus';var Italy_3_4='Medúza';
		var Italy_4='Farkas barlang';var Italy_4_1='Vaddisznó';var Italy_4_2='Farkas falka';var Italy_4_3='Alfa farkas';var Italy_4_4='Vérfarkas';
		var Italy_5='Ősi templom';var Italy_5_1='Kultusz őr';var Italy_5_2='Vérpatkány';var Italy_5_3='Minotaur';var Italy_5_4='Minotaurusz vezér';
		var Italy_6='Barbár falu';var Italy_6_1='Barbár';var Italy_6_2='Barbár harcos';var Italy_6_3='Viking harcos';var Italy_6_4='Barbár főnök';
		var Italy_7='Bandita tábor';var Italy_7_1='Hűtlen katona';var Italy_7_2='Hűtlen zsoldos';var Italy_7_3='Bérgyilkos';var Italy_7_4='Bandita vezér';
		var Germany='Germánia';
		var Germany_1='Barlang templom';var Germany_1_1='Légionárius';var Germany_1_2='Myrmidon';var Germany_1_3='Centurió';var Germany_1_4='Lelketlen';
		var Germany_2='A zöld erdő';var Germany_2_1='Óriás vaddisznó';var Germany_2_2='Mocsári szörny';var Germany_2_3='Mocsári szellem';var Germany_2_4='Vérmedve';
		var Germany_3='Elátkozott falu';var Germany_3_1='Hun';var Germany_3_2='Ősi';var Germany_3_3='Vámpír';var Germany_3_4='Undor';
		var Germany_4='A halál hegye';var Germany_4_1='Csontváz harcos';var Germany_4_2='Dühödt csontvázharcos';var Germany_4_3='Lich';var Germany_4_4='Nekromanta herceg';
		var Germany_5='Vandál falu';var Germany_5_1='Vandal harcos';var Germany_5_2='Jarl';var Germany_5_3='Gazember';var Germany_5_4='Halál lovag';
		var Germany_6='Bánya';var Germany_6_1='Őr';var Germany_6_2='Draug';var Germany_6_3='Kő gólem';var Germany_6_4='Karmos féreg';
		var Germany_7='Teuton tábor';var Germany_7_1='Barbár';var Germany_7_2='Teuton hős';var Germany_7_3='Teuton uralkodó';var Germany_7_4='Seidr';
		var Germany_8='Koman hegység';var Germany_8_1='Pokoli gazella';var Germany_8_2='Kardfogú tigris';var Germany_8_3='Sárkánykölyök';var Germany_8_4='Sárkány';
		var Africa='Afrika';
		var Africa_1='Voodoo templom';var Africa_1_1='Kobra';var Africa_1_2='Óriás skorpió';var Africa_1_3='Életre kelt múmia';var Africa_1_4='Seth papja';
		var Africa_2='Híd';var Africa_2_1='Adószedő';var Africa_2_2='Emberevő';var Africa_2_3='Törzsi harcos';var Africa_2_4='Csont sámán';
		var Africa_3='Véres barlang';var Africa_3_1='Vérfarkas';var Africa_3_2='Óriás bogár';var Africa_3_3='Tűztáncos';var Africa_3_4='Tűzdémon';
		var Africa_4='Elveszett kikötő';var Africa_4_1='Krokodil';var Africa_4_2='Éloholt hordár';var Africa_4_3='Óriás vízisikló';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Umpokta törzs';var Africa_5_1='Törzsi harcos';var Africa_5_2='Törzsi varázsló';var Africa_5_3='Szellemharcos';var Africa_5_4='Seth főpapja';
		var Africa_6='Karaván';var Africa_6_1='Kém';var Africa_6_2='Karaván őr';var Africa_6_3='Elit őr';var Africa_6_4='Rabszolga kereskedő';
		var Africa_7='Mesoai-Oázis';var Africa_7_1='Elefánt';var Africa_7_2='Gepárd';var Africa_7_3='Demon oroszlán';var Africa_7_4='Demon Elefánt';
		var Africa_8='Sziklaugró';var Africa_8_1='Elátkozott antilop';var Africa_8_2='Óriás pók';var Africa_8_3='Sámán';var Africa_8_4='Fősámán';
	}
	else if(GCAO_lang=='it'){
		var text='Quando entri nella stanza, vedi djor, un antico programmatore francese, che lavora su un nuovo tipo di combattimento virtuale. <br> Vicino a lui, ce\' un supercomputer pronto a creare un ologramma di qualunque giocatore o gladiatore che vuoi, così puoi simolare un combattimento con qualunque mostro a giocatore che vuoi…  <br><br>Sei pronto a combattere?';
		var Skill='Abilità';
		var Agility='Agilità';
		var Charisma='Carisma';
		var Armour='Corazza';
		var Damage='Danno';
		var ChanceForCriticalDamage='Possibilità di colpo critico';
		var ChanceToBlockAHit='Possibilità di bloccare un colpo';
		var ChanceForCriticalDamage='Cambia per evitare colpi critici';
		
		var Italy='Italy';
		var Italy_1='Grimwood';var Italy_1_1='Rat';var Italy_1_2='Lynx';var Italy_1_3='Wolf';var Italy_1_4='Bear';
		var Italy_2='Pirate Harbour';var Italy_2_1='Fled Slave';var Italy_2_2='Corrupt Soldier';var Italy_2_3='Assassin ';var Italy_2_4='Captain ';
		var Italy_3='Misty Mountains';var Italy_3_1='Elusive Recruit';var Italy_3_2='Harpy';var Italy_3_3='Cerberus';var Italy_3_4='Medusa';
		var Italy_4='Wolf Cave';var Italy_4_1='Wild Boar';var Italy_4_2='Wolf Pack';var Italy_4_3='Alphawolf';var Italy_4_4='Werewolf';
		var Italy_5='Ancient Temple';var Italy_5_1='Cultist Guard';var Italy_5_2='Wererat';var Italy_5_3='Minotaur';var Italy_5_4='Minotaur Chief';
		var Italy_6='Barbarian Village';var Italy_6_1='Barbarian';var Italy_6_2='Barbarian Warrior';var Italy_6_3='Berserker';var Italy_6_4='Barbarian Chief';
		var Italy_7='Bandit Camp';var Italy_7_1='Renegade Soldier';var Italy_7_2='Renegade Mercenary';var Italy_7_3='Assassinator';var Italy_7_4='Bandit Chief';
		var Germany='Germany';
		var Germany_1='Cave Temple';var Germany_1_1='Legionnaire';var Germany_1_2='Myrmidon';var Germany_1_3='Centurion';var Germany_1_4='Soulless';
		var Germany_2='The Green Forest';var Germany_2_1='Giant Wild Boar';var Germany_2_2='Swamp Lord';var Germany_2_3='Swamp Spirit';var Germany_2_4='Werebear';
		var Germany_3='Cursed Village';var Germany_3_1='Hun';var Germany_3_2='Ancient';var Germany_3_3='Nachzehrer';var Germany_3_4='Abomination';
		var Germany_4='Death Hill';var Germany_4_1='Skeleton Warrior';var Germany_4_2='Skeleton Berserker';var Germany_4_3='Lich';var Germany_4_4='Necromancer Prince';
		var Germany_5='Vandal Village';var Germany_5_1='Vandal Warrior';var Germany_5_2='Jarl';var Germany_5_3='Dark Fighter';var Germany_5_4='Death Knight';
		var Germany_6='Mine';var Germany_6_1='Guard';var Germany_6_2='Draug';var Germany_6_3='Stone Golem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Teuton Camp';var Germany_7_1='Barbarian';var Germany_7_2='Teuton Hero';var Germany_7_3='Teuton Lord';var Germany_7_4='Seidr';
		var Germany_8='Koman Mountain';var Germany_8_1='Infernal Springbok';var Germany_8_2='Sabre-Tooth Tiger';var Germany_8_3='Dragon Whelp';var Germany_8_4='Dragon';
		var Africa='Africa';
		var Africa_1='Voodoo Temple';var Africa_1_1='Cobra';var Africa_1_2='Giant Scorpion';var Africa_1_3='Awakened Mummy';var Africa_1_4='Seth Priest';
		var Africa_2='Bridge';var Africa_2_1='Tax Collector';var Africa_2_2='Man Eater';var Africa_2_3='Tribal Warrior';var Africa_2_4='Bone Shaman';
		var Africa_3='Blood Cave';var Africa_3_1='Blood Wolf';var Africa_3_2='Giant Beetle';var Africa_3_3='Fire Dancer';var Africa_3_4='Fire Demon';
		var Africa_4='Lost Harbour';var Africa_4_1='Crocodile';var Africa_4_2='Undead Holder';var Africa_4_3='Giant Water Snake';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Umpokta Tribe';var Africa_5_1='Tribal Warrior';var Africa_5_2='Tribal Magician';var Africa_5_3='Spirit Warrior';var Africa_5_4='Seth High Priest';
		var Africa_6='Caravan';var Africa_6_1='Spy';var Africa_6_2='Caravan Guard';var Africa_6_3='Elite Guard';var Africa_6_4='Slave Merchant';
		var Africa_7='Mesoai-Oasis';var Africa_7_1='Elephant';var Africa_7_2='Cheetah';var Africa_7_3='Demon Lion';var Africa_7_4='Demon Elephant';
		var Africa_8='Cliff Jumper';var Africa_8_1='Cursed Antelope';var Africa_8_2='Giant Spider';var Africa_8_3='Shaman';var Africa_8_4='High Shaman';
	}
	else if(GCAO_lang=='pl'){
		var text='Po wejściu do pokoju, widzisz djor, jeden z dawnych francuskich programistów, pracujących nad nowym rodzajem wirtualnej walki i szkolenia.<br>blisko niego, znajduje się duży superkomputer gotowy stworzyć hologram każdego potwora lub innego zawodnika, którego chcesz, aby symulować walkę z tobą i wyświetlić wyniki ... <br><br>Jesteś gotowy do walki?';
		var Skill='Władanie';
		var Agility='Zręczność';
		var Charisma='Charyzma';
		var Armour='Pancerz';
		var Damage='Obrażenia';
		var ChanceForCriticalDamage='Szana na krytyczne trafienie';
		var ChanceToBlockAHit='Szansa na zablokowanie ciosu';
		var ChanceForCriticalDamage='Szansa na uniknięcie krytycznych trafień';

		var Italy='Italia';
		var Italy_1='Mroczne lasy';var Italy_1_1='Szczur';var Italy_1_2='Ryś';var Italy_1_3='Wilk';var Italy_1_4='Niedźwiedź';
		var Italy_2='Port Piratów';var Italy_2_1='Zbiegły Niewolnik';var Italy_2_2='Skorumpowany Żołdak';var Italy_2_3='Morderca ';var Italy_2_4='KApitan ';
		var Italy_3='Mgielne Góry';var Italy_3_1='Zbiegły Rekrut';var Italy_3_2='Harpia';var Italy_3_3='Cerber';var Italy_3_4='Meduza';
		var Italy_4='Wilcza Jama';var Italy_4_1='Dzika Świnia';var Italy_4_2='Stado Wilków';var Italy_4_3='Wilk Alfa';var Italy_4_4='Wilkołak';
		var Italy_5='Starożytna Świątynia';var Italy_5_1='Strażnik Kultyzmu';var Italy_5_2='Człekoszczur';var Italy_5_3='Minotaur';var Italy_5_4='Wódz Minotaurów';
		var Italy_6='Wioska Dzikusów';var Italy_6_1='Barbarzyńca';var Italy_6_2='Barbarzyński Wojownik';var Italy_6_3='Berserk';var Italy_6_4='Barbarzyński Wódz';
		var Italy_7='Obóz Bandytów';var Italy_7_1='Wiarołomny Żołdka';var Italy_7_2='Wiarołomny Najemnik';var Italy_7_3='Skrytobójca';var Italy_7_4='Bandzior Rex';
		var Germany='Germania';
		var Germany_1='Jaskiniowa Świątynia';var Germany_1_1='Legionista';var Germany_1_2='Myrmidon';var Germany_1_3='Centurion';var Germany_1_4='Bezduszny';
		var Germany_2='Zielony Las';var Germany_2_1='Dziki Rex';var Germany_2_2='Bagienny Potwór';var Germany_2_3='Bagienny Duch';var Germany_2_4='Człeko Niedźwiedź';
		var Germany_3='Przeklęta Wioska';var Germany_3_1='Hun';var Germany_3_2='Prastaruch';var Germany_3_3='Wampir';var Germany_3_4='Ohydniak';
		var Germany_4='Wzgórze Śmierci';var Germany_4_1='Kościany Wojownik';var Germany_4_2='Kościany Berserker';var Germany_4_3='Licz';var Germany_4_4='Książe Nekromata';
		var Germany_5='Wioska Wandali';var Germany_5_1='Wandalski Wojownik';var Germany_5_2='Jarl';var Germany_5_3='Mroczny Bojownik';var Germany_5_4='Rycerz Śmierci';
		var Germany_6='Kopalnia';var Germany_6_1='Strażnik';var Germany_6_2='Draug';var Germany_6_3='Kamienny Golem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Obóz Teutonów';var Germany_7_1='Brutal';var Germany_7_2='Teutoński Bohater';var Germany_7_3='Teutoński Wódz';var Germany_7_4='Seidr';
		var Germany_8='Góra Koman';var Germany_8_1='Piekielna Gazela';var Germany_8_2='Tygrys Szablozębny';var Germany_8_3='Smoczęcie';var Germany_8_4='Smok';
		var Africa='Afryka';
		var Africa_1='Świątynia Voodoo';var Africa_1_1='Kobra';var Africa_1_2='Skorpion Rex';var Africa_1_3='Wskrzeszona Mumia';var Africa_1_4='Kapłan Setha';
		var Africa_2='Most';var Africa_2_1='Adhortator';var Africa_2_2='Ludożerca';var Africa_2_3='Plemienny Wojownik';var Africa_2_4='Kościotrupi Szaman';
		var Africa_3='Jaskinia Krwi';var Africa_3_1='Wilk Krwiopijca';var Africa_3_2='Wielki Żuk';var Africa_3_3='Połykacz Ognia';var Africa_3_4='Płomienny Demon';
		var Africa_4='Zaginiony Port';var Africa_4_1='Krokodyl';var Africa_4_2='Umarlak';var Africa_4_3='Hydrus Rex';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Obóz Umpokta';var Africa_5_1='Plemienny Wojownik';var Africa_5_2='Plemienny Czarodziej';var Africa_5_3='Duch Wojownika';var Africa_5_4='Arcykapłan Setha';
		var Africa_6='Karawana';var Africa_6_1='Zwiadowca';var Africa_6_2='Strażnik Karawany';var Africa_6_3='Elitarny Strażnik';var Africa_6_4='Handlarz Niewolników';
		var Africa_7='Oaza Mesoai';var Africa_7_1='Słoń';var Africa_7_2='Gepard';var Africa_7_3='Demoniczny Lew';var Africa_7_4='Demoniczny Słoń';
		var Africa_8='Góra Straceńców';var Africa_8_1='Przeklęta Antylopa';var Africa_8_2='Pająk Rex';var Africa_8_3='Szaman';var Africa_8_4='Arcyszaman';
	}
	else if(GCAO_lang=='ir'){
		var text='وقتی شما وارد اتاق میشوید،دیجور را میبینید،یکی از قدیمیترین برنامه نویسان فرانسه را،او برروی یکی از جدیدترین نوع جنگهای مجازیو شبیه سازی شده کار میکند.<br>در نزدیکیِ او ،یک ابر رایانه وجود داردکه مشخصات تمام رئیس ها و بازیکنان ایالت،در آن قرار دارد ،با هرکهمیخواهید بطور مجازی مبارزه کنید... <br><br>برای مبارزه آماده اید؟';
		var Skill='مهارت';
		var Agility='چابکی';
		var Charisma='جذابیت';
		var Armour='دفاع';
		var Damage='خسارت';
		var ChanceForCriticalDamage='فرصت برای خسارت بحرانی';
		var ChanceToBlockAHit='فرصت برای مانع شدن';
		var ChanceForCriticalDamage='فرصت برای جلوگیری از ضربات شدید';

		var Italy='ایتالیا';
		var Italy_1='جنگل ترسناک';var Italy_1_1='موش';var Italy_1_2='گربۀ وحشی';var Italy_1_3='گرگ';var Italy_1_4='خرس';
		var Italy_2='بندرگاه دزدان دریایی';var Italy_2_1='بردۀ فراری';var Italy_2_2='سرباز خلافکار';var Italy_2_3='قاتل';var Italy_2_4='کاپیتان ';
		var Italy_3='کوه های مه آلود';var Italy_3_1='تازه کار فراری';var Italy_3_2='هارپی';var Italy_3_3='سگ سه سر جهنمی';var Italy_3_4='عجوزۀ مار موی';
		var Italy_4='غر گرگها';var Italy_4_1='گراز وحشی';var Italy_4_2='دستۀ گرگها';var Italy_4_3='گرگ آلفا';var Italy_4_4='ورولف';
		var Italy_5='جایگاه قدیمی فرمانروایان';var Italy_5_1='نگهبان آیین ها';var Italy_5_2='موش بیرحم';var Italy_5_3='مینوتار';var Italy_5_4='رئیس مینوتار';
		var Italy_6='دهکدۀ قوم بربر';var Italy_6_1='قوم بربر';var Italy_6_2='جنگجوی قوم بربر';var Italy_6_3='جنگجوی بیرحم';var Italy_6_4='رئیس قوم بربر';
		var Italy_7='اردوگاه راهزنان';var Italy_7_1='سرباز فراری';var Italy_7_2='سرباز مزدور فراری';var Italy_7_3='قاتل';var Italy_7_4='رئیس راهزن';
		var Germany='آلمان';
		var Germany_1='جایگاه فروریخته فرمانروایان';var Germany_1_1='سرباز لژیون';var Germany_1_2='میرمیدون';var Germany_1_3='رئیس دستۀ 100 نفری';var Germany_1_4='بی روح';
		var Germany_2='جنگل سرسبز';var Germany_2_1='گراز وحشی بزرگ';var Germany_2_2='ارباب باتلاق';var Germany_2_3='روح باتلاق';var Germany_2_4='خرس بیرحم';
		var Germany_3='دهکدۀ نفرین شده';var Germany_3_1='قوم هون';var Germany_3_2='قدیمی';var Germany_3_3='موجود اهریمنی';var Germany_3_4='نفرت';
		var Germany_4='تپۀ مرگ';var Germany_4_1='جنگجوی اسکلتی';var Germany_4_2='جنگجوی بیرحم اسکلتی';var Germany_4_3='جادوگر مردگان';var Germany_4_4='شاهزادۀ غیبگو';
		var Germany_5='Vandal Village';var Germany_5_1='Vandal Warrior';var Germany_5_2='Jarl';var Germany_5_3='Dark Fighter';var Germany_5_4='Death Knight';
		var Germany_6='Mine';var Germany_6_1='Guard';var Germany_6_2='Draug';var Germany_6_3='Stone Golem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Teuton Camp';var Germany_7_1='Barbarian';var Germany_7_2='Teuton Hero';var Germany_7_3='Teuton Lord';var Germany_7_4='Seidr';
		var Germany_8='Koman Mountain';var Germany_8_1='Infernal Springbok';var Germany_8_2='Sabre-Tooth Tiger';var Germany_8_3='Dragon Whelp';var Germany_8_4='Dragon';
		var Africa='آفریقا';
		var Africa_1='جایگاه جادوگر';var Africa_1_1='مار کبری';var Africa_1_2='عقرب بزرگ';var Africa_1_3='مومیایی بیدار شده';var Africa_1_4='کشیش ست یا همان فرمانروای تاریکی';
		var Africa_2='پل';var Africa_2_1='مأمور مالیات';var Africa_2_2='آدمخوار';var Africa_2_3='جنگجوی قبیله';var Africa_2_4='جادوگر قبیله با نشان استخوان';
		var Africa_3='غار خونین';var Africa_3_1='گرگ خون ریز';var Africa_3_2='سوسک بزرگ';var Africa_3_3='رقاص آتش';var Africa_3_4='دیو آتشین';
		var Africa_4='بندرگاه گم شده';var Africa_4_1='تمساح';var Africa_4_2='نگه دارندۀ زنده';var Africa_4_3='مار آبی بزرگ';var Africa_4_4='دایناسور';
		var Africa_5='قبیلۀ آمپوکتا';var Africa_5_1='جنگجوی قبیله';var Africa_5_2='جادوگر قبیله';var Africa_5_3='جنگجوی روح';var Africa_5_4='كشيش بزرگ ست يا همان فرمانرواي تاريكي';
		var Africa_6='کاروان';var Africa_6_1='جاسوس';var Africa_6_2='نگهبان کاروان';var Africa_6_3='نگهبان برگزیده';var Africa_6_4='برده فروش';
		var Africa_7='دهکدۀ میان کویری میسوای';var Africa_7_1='فیل';var Africa_7_2='چیتا';var Africa_7_3='شیر جهنمی';var Africa_7_4='فیل جهنمی';
		var Africa_8='پرتگاه';var Africa_8_1='بز کوهی نفرین شده';var Africa_8_2='عنکبوت بزرگ';var Africa_8_3='جادوگر قبیله';var Africa_8_4='جادوگر خشمگين قبيله';
	}
	else if(GCAO_lang=='pt'){
		var text='Quando entras na sala vês djor, um Ancião progamador Francês, a trabalhar num novo tipo de batalha e treino virtual.<br>Perto dele, está um super computador enorme preparado para criar um holograma teu e de qualquer adversário, com o qual, queiras simular uma batalha e obter os resultados... <br><br>Estás pronto para a batalha?';
		var Skill='Habilidade';
		var Agility='Agilidade';
		var Charisma='Carisma';
		var Armour='Armadura';
		var Damage='Dano';
		var ChanceForCriticalDamage='Hipótese para dano crítico';
		var ChanceToBlockAHit='Hipótese de bloquear um golpe';
		var ChanceForCriticalDamage='Hipótese de evitar golpes críticos';

		var Italy='Itália';
		var Italy_1='Bosques Escuros';var Italy_1_1='Rato';var Italy_1_2='Lince';var Italy_1_3='Lobo';var Italy_1_4='Urso';
		var Italy_2='Porto Pirata';var Italy_2_1='Escravo Fugitivo';var Italy_2_2='Soldado Corrupto';var Italy_2_3='Assassino';var Italy_2_4='Capitão';
		var Italy_3='Montanhas Nubladas';var Italy_3_1='Recruta';var Italy_3_2='Hárpia';var Italy_3_3='Cérebro';var Italy_3_4='Medusa';
		var Italy_4='Gruta do Lobo';var Italy_4_1='Javali';var Italy_4_2='Alcateia';var Italy_4_3='Lobo Alfa';var Italy_4_4='Lobisomem';
		var Italy_5='Templo Antigo';var Italy_5_1='Guarda';var Italy_5_2='Ratazana';var Italy_5_3='Minotauro';var Italy_5_4='Minotauro Chefe';
		var Italy_6='Povo Bárbaro';var Italy_6_1='Bárbaro';var Italy_6_2='Guerreiro Bárbaro';var Italy_6_3='Berserker';var Italy_6_4='Chefe Bárbaro';
		var Italy_7='Acampamento de Bandidos';var Italy_7_1='Soldado Renegado';var Italy_7_2='Mercenário Renegado';var Italy_7_3='Assassino';var Italy_7_4='Bandido Chefe';
		var Germany='Germânia';
		var Germany_1='Templo da Caverna';var Germany_1_1='Legionário';var Germany_1_2='Myrmidon';var Germany_1_3='Centurião';var Germany_1_4='Soulless';
		var Germany_2='Floresta Verde';var Germany_2_1='Javali Gigante';var Germany_2_2='Monstro do Pântano';var Germany_2_3='Espírito do Pântano';var Germany_2_4='Werebear';
		var Germany_3='Vila Amaldiçoada';var Germany_3_1='Huno';var Germany_3_2='Ancião';var Germany_3_3='Nachzehrer';var Germany_3_4='Abominação';
		var Germany_4='Monte da Morte';var Germany_4_1='Esqueleto Guerreiro';var Germany_4_2='Esqueleto Berserker';var Germany_4_3='Lich';var Germany_4_4='Príncipe Necromancer';
		var Germany_5='Vila de Vândalos';var Germany_5_1='Guerreiro Vândalo';var Germany_5_2='Jarl';var Germany_5_3='Lutador Negro';var Germany_5_4='Cavaleiro da Morte';
		var Germany_6='Mina';var Germany_6_1='Guarda';var Germany_6_2='Draug';var Germany_6_3='Golem de Pedra';var Germany_6_4='Tatzelwurm';
		var Germany_7='Campo Teuton';var Germany_7_1='Bárbaro';var Germany_7_2='Herói Teuton';var Germany_7_3='Lorde Teuton';var Germany_7_4='Seidr';
		var Germany_8='Mountanha Koman';var Germany_8_1='Springbok Infernal';var Germany_8_2='Tigre Dente-de-Sabre';var Germany_8_3='Filhote de Dragão';var Germany_8_4='Dragão';
		var Africa='África';
		var Africa_1='Templo Voodoo';var Africa_1_1='Cobra';var Africa_1_2='Escorpião Gigante';var Africa_1_3='Múmia Desperta';var Africa_1_4='Padre Seth';
		var Africa_2='Ponte';var Africa_2_1='Cobrador de Impostos';var Africa_2_2='Canibal';var Africa_2_3='Guerreiro da Tribo';var Africa_2_4='Xamã dos Ossos';
		var Africa_3='Caverna de Sangue';var Africa_3_1='Lobo Sanguinário';var Africa_3_2='Escaravelho Gigante';var Africa_3_3='Dançador de Fogo';var Africa_3_4='Demónio de Fogo';
		var Africa_4='Porto Perdido';var Africa_4_1='Crocodilo';var Africa_4_2='Portador Morto-Vivo';var Africa_4_3='Cobra de Água Gigante';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Tribo Umpokta';var Africa_5_1='Guerreiro da Tribo';var Africa_5_2='Mago da Tribo';var Africa_5_3='Espírito Guerreiro';var Africa_5_4='Padre Seth Superior';
		var Africa_6='Caravana';var Africa_6_1='Espião';var Africa_6_2='Guarda da Caravana';var Africa_6_3='Guarda Elite';var Africa_6_4='Escravo Mercador';
		var Africa_7='Oásis de Messoai';var Africa_7_1='Elefante';var Africa_7_2='Chita';var Africa_7_3='Demónio Leão';var Africa_7_4='Demónio Elefante';
		var Africa_8='Precipício';var Africa_8_1='Antílope Amaldiçoado';var Africa_8_2='Aranha Gigante';var Africa_8_3='Xamã';var Africa_8_4='Xamã Superior';
	}
	else if(GCAO_lang=='cz'){
		var text='Když vstupuješ do místnosti, vidíš Mirona, jednoho z bájných programátorů a chemiků, jak pracuje na novém druhu virtuálního boje a výcviku.<br>Vedle něj vidíš obří superpočítač Skynet, který je připraven vytvořit po vložení holodisku hologram monstra, nebo jiného hráče a simulovat s tebou souboj... <br><br>Tak co, máš dost JETu, abys vydržel?';
		var Skill='Dovednost';
		var Agility='Obratnost';
		var Charisma='Charisma';
		var Armour='Zbroj';
		var Damage='Poškození';
		var ChanceForCriticalDamage='Šance na kritický zásah';
		var ChanceToBlockAHit='Šance zblokování zásahu';
		var ChanceForCriticalDamage='Šance na vyhnutí se kritickému zásahu';

		var Italy='Itálie';
		var Italy_1='Temnoles';var Italy_1_1='Krysa';var Italy_1_2='Rys';var Italy_1_3='Vlk';var Italy_1_4='Medvěd';
		var Italy_2='Pirátské přístaviště';var Italy_2_1='Uprchlý otrok';var Italy_2_2='Zkorumpovaný voják';var Italy_2_3='Vrah';var Italy_2_4='Kapitán';
		var Italy_3='Mlžné hory';var Italy_3_1='Vyhýbavý rekrut';var Italy_3_2='Harpyje';var Italy_3_3='Kerberos';var Italy_3_4='Medůza';
		var Italy_4='Vlčí jeskyně';var Italy_4_1='Kanec';var Italy_4_2='Vlčí smečka';var Italy_4_3='Alfa vlk';var Italy_4_4='Vlkodlak';
		var Italy_5='Prastarý chrám';var Italy_5_1='Strážce kultu';var Italy_5_2='Obří krysa';var Italy_5_3='Minotaur';var Italy_5_4='Vůdce minotaurů';
		var Italy_6='Barbarská vesnice';var Italy_6_1='Barbar';var Italy_6_2='Barbarský válečník';var Italy_6_3='Berserk';var Italy_6_4='Barbarský válečník';
		var Italy_7='Tábořiště banditů';var Italy_7_1='Voják odpadlík';var Italy_7_2='Žoldák odpadlík';var Italy_7_3='Úkladný vrah';var Italy_7_4='Náčelník banditů';
		var Germany='Germánie';
		var Germany_1='Jeskynní chrám';var Germany_1_1='Legionář';var Germany_1_2='Stoupenec';var Germany_1_3='Centurion';var Germany_1_4='Bezduchý';
		var Germany_2='Zelený les';var Germany_2_1='Obří kanec';var Germany_2_2='Vládce bažin';var Germany_2_3='Duše bažin';var Germany_2_4='Obří medvěd';
		var Germany_3='Zakletá vesnice';var Germany_3_1='Hun';var Germany_3_2='Starověký';var Germany_3_3='Nachzehrer';var Germany_3_4='Hnus';
		var Germany_4='Pahorek Smrti';var Germany_4_1='Kostlivec válečník';var Germany_4_2='Kostlivec berserk';var Germany_4_3='Lich';var Germany_4_4='Nekromantí princ';
		var Germany_5='Vesnice Vandalů';var Germany_5_1='Válečník vandalů';var Germany_5_2='Jarl';var Germany_5_3='Temný bojovník';var Germany_5_4='Rytíř Smrti';
		var Germany_6='Důl';var Germany_6_1='Strážný';var Germany_6_2='Draug';var Germany_6_3='Kamenný golem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Tábor Teutonů';var Germany_7_1='Barbar';var Germany_7_2='Teutonský hrdina';var Germany_7_3='Teutonský lord';var Germany_7_4='Seidr';
		var Germany_8='Hora Koman';var Germany_8_1='Pekelná antilopa';var Germany_8_2='Šavlozubý tygr';var Germany_8_3='Dračí mládě';var Germany_8_4='Drak';
		var Africa='Afrika';
		var Africa_1='Chrám VooDoo';var Africa_1_1='Kobra';var Africa_1_2='Obří škorpión';var Africa_1_3='Probuzená mumie';var Africa_1_4='Kněží boha Setha';
		var Africa_2='Most';var Africa_2_1='Výběrčí daní';var Africa_2_2='Lidožrout';var Africa_2_3='Kmenový válečník';var Africa_2_4='Temný šaman';
		var Africa_3='Jeskyně Krve';var Africa_3_1='Krvavý vlk';var Africa_3_2='Obří brouk';var Africa_3_3='Ohnivý tanečník';var Africa_3_4='Ohnivý démon';
		var Africa_4='Ztracený přístav';var Africa_4_1='Krokodýl';var Africa_4_2='Nemrtvý majitel';var Africa_4_3='Obrovský vodní had';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Vesnice Umpoktů';var Africa_5_1='Kmenový válečník';var Africa_5_2='Kmenový kouzelník';var Africa_5_3='Válečník duše';var Africa_5_4='Vysoký kněží boha Setha';
		var Africa_6='Karavana';var Africa_6_1='Špión';var Africa_6_2='Strážce karavany';var Africa_6_3='Elitní strážný';var Africa_6_4='Obchodník s otroky';
		var Africa_7='Oáza Mesoai';var Africa_7_1='Slon';var Africa_7_2='Gepard';var Africa_7_3='Démonický lev';var Africa_7_4='Démonický slon';
		var Africa_8='Útes sebevrahů';var Africa_8_1='Zakletá antilopa';var Africa_8_2='Obrovský pavouk';var Africa_8_3='Šaman';var Africa_8_4='Velký šaman';
	}
	else if(GCAO_lang=='ru'){
		var text='Войдя в комнату Вы видите djor,одного из древнейших программистов Франции, работающего над новым типом симулятора боев и тренировок.<br>Рядом с ним находится большой суперкомпьютер, готовый создать голограмму любого монстра или другого игрока для симуляции боя с Вами и вывода результата на экран... <br><br>Готовы к битве?';
		var Skill='Умение';
		var Agility='Ловкость';
		var Charisma='Харизма';
		var Armour='Броня';
		var Damage='Урон';
		var ChanceForCriticalDamage='Вероятность критичекого урона';
		var ChanceToBlockAHit='Вероятность блока';
		var ChanceForCriticalDamage='Вероятность избежать критического удара';
		var Italy='Италия';
		var Italy_1='Мрачный лес';var Italy_1_1='Крыса';var Italy_1_2='Рысь';var Italy_1_3='Волк';var Italy_1_4='Медведь';
		var Italy_2='Пиратская бухта';var Italy_2_1='Беглый раб';var Italy_2_2='Продажный солдат';var Italy_2_3='Ассасин ';var Italy_2_4='Капитан ';
		var Italy_3='Туманные горы';var Italy_3_1='неуловимый рекрут';var Italy_3_2='Гарпия';var Italy_3_3='Цербер';var Italy_3_4='Медуза';
		var Italy_4='Волчья нора';var Italy_4_1='Дикий вепрь';var Italy_4_2='Стая волков';var Italy_4_3='Вожак';var Italy_4_4='Ликантроп';
		var Italy_5='Древний храм';var Italy_5_1='Культист-страж';var Italy_5_2='Крыса-оборотень';var Italy_5_3='Минотавр';var Italy_5_4='Минотавр-вождь';
		var Italy_6='Деревня варваров';var Italy_6_1='Варвар';var Italy_6_2='Варвар-боец';var Italy_6_3='Берсерк';var Italy_6_4='Варвар-вождь';
		var Italy_7='Лагерь бандитов';var Italy_7_1='Ренегат';var Italy_7_2='Ренегат-наемник';var Italy_7_3='Убийца';var Italy_7_4='Бандит-вождь';
		var Germany='Германия';
		var Germany_1='Храм-пещера';var Germany_1_1='Легионер';var Germany_1_2='Мурмидон';var Germany_1_3='Центурион';var Germany_1_4='Бездушный';
		var Germany_2='Зеленый лес';var Germany_2_1='Дикий вепрь';var Germany_2_2='Упырь';var Germany_2_3='Болотный дух';var Germany_2_4='Ликантроп';
		var Germany_3='Проклятая деревня';var Germany_3_1='Гунн';var Germany_3_2='Древний';var Germany_3_3='Носферату';var Germany_3_4='Отвратительный';
		var Germany_4='Курган смерти';var Germany_4_1='Скелет-вони';var Germany_4_2='Скелет-берсерк';var Germany_4_3='Лич';var Germany_4_4='Принц-некромант';
		var Germany_5='Деревня вандалов';var Germany_5_1='Вандал-воин';var Germany_5_2='Ярл';var Germany_5_3='Сумрачный боец';var Germany_5_4='Рыцарь смерти';
		var Germany_6='Шахта';var Germany_6_1='Страж';var Germany_6_2='Драуг';var Germany_6_3='Каменный голем';var Germany_6_4='Татцельвурм';
		var Germany_7='Лагерь тевтонов';var Germany_7_1='Варвар';var Germany_7_2='Тевтон-герой';var Germany_7_3='Тевтон-лорд';var Germany_7_4='Сейд';
		var Germany_8='Гора Коман';var Germany_8_1='Адская газель';var Germany_8_2='Саблезубый тигр';var Germany_8_3='Детеныш дракона';var Germany_8_4='Дракон';
		var Africa='Африка';
		var Africa_1='Храм вуду';var Africa_1_1='Кобра';var Africa_1_2='Скорпион';var Africa_1_3='Мумия';var Africa_1_4='Служитель Сета';
		var Africa_2='Мост';var Africa_2_1='Сборщик податей';var Africa_2_2='Каннибал';var Africa_2_3='Воин племени';var Africa_2_4='Костяной шаман';
		var Africa_3='Кровавая пещера';var Africa_3_1='Кровавый волк';var Africa_3_2='Гигантский жук';var Africa_3_3='Огненный танцор';var Africa_3_4='Огненный демон';
		var Africa_4='Потерянная гавань';var Africa_4_1='Крокодил';var Africa_4_2='Труповод';var Africa_4_3='Морской змей';var Africa_4_4='Мокеле мбембе';
		var Africa_5='Племя умпокта';var Africa_5_1='Боец племени';var Africa_5_2='Шаман племени';var Africa_5_3='Дух-воин';var Africa_5_4='Священник Сета';
		var Africa_6='Караван';var Africa_6_1='Шпион';var Africa_6_2='Страж каравана';var Africa_6_3='Элитный страж';var Africa_6_4='Работорговец';
		var Africa_7='Оазис Месоай';var Africa_7_1='Слон';var Africa_7_2='Гепард';var Africa_7_3='Лев-демон';var Africa_7_4='Слон-демон';
		var Africa_8='Утес прыжков';var Africa_8_1='Антилопа';var Africa_8_2='Гигантский паук';var Africa_8_3='Шаман';var Africa_8_4='Верховный шаман';
	}
	else if(GCAO_lang=='bg'){
		var text='When you enter in the room, you see djor, one of the ancient French programmers, working over a new type of virtual fighting and training.<br>Near to him, there is a big super computer ready to create a hologram of any monster or any other player you want, in order to simulate a fight with you and display the results... <br><br>Are you ready to fight?';
		var Skill='Умение';
		var Agility='Ловкост';
		var Charisma='Чар';
		var Armour='Броня';
		var Damage='Щета';
		var ChanceForCriticalDamage='Шанс за критичен удар';
		var ChanceToBlockAHit='Шанс да блокирате удар';
		var ChanceForCriticalDamage='Шанс да избегнете критичен удар';

		var Italy='Италия';
		var Italy_1='Мрачна гора';var Italy_1_1='Плъх';var Italy_1_2='Рис';var Italy_1_3='Вълк';var Italy_1_4='Мечка';
		var Italy_2='Пиратско пристанище';var Italy_2_1='Избягал роб';var Italy_2_2='Корумпиран войник';var Italy_2_3='Убиец';var Italy_2_4='Капитан';
		var Italy_3='Мъгливи планини';var Italy_3_1='Набиране на неуловими';var Italy_3_2='Харпия';var Italy_3_3='Цербер';var Italy_3_4='Медуза';
		var Italy_4='Вълча пещера';var Italy_4_1='Див глиган';var Italy_4_2='Вълча глутница';var Italy_4_3='Алфа вълк';var Italy_4_4='Върколак';
		var Italy_5='Античен храм';var Italy_5_1='Дезертьор';var Italy_5_2='Wererat';var Italy_5_3='Елитен Минотавър';var Italy_5_4='Минотавър Шеф';
		var Italy_6='Варварско село';var Italy_6_1='Варварин';var Italy_6_2='Варварин войн';var Italy_6_3='Берсек';var Italy_6_4='Варварин шеф';
		var Italy_7='Лагер на бандитите';var Italy_7_1='Войник Дезертьор';var Italy_7_2='Наемник Дезертьор';var Italy_7_3='Нападател';var Italy_7_4='Шеф на бандитите';
		var Germany='Германия';
		var Germany_1='Пещерния храм';var Germany_1_1='Легионер';var Germany_1_2='Мурмио';var Germany_1_3='Центурион';var Germany_1_4='Бездушен';
		var Germany_2='Зелената гора';var Germany_2_1='Гигантски див глиган';var Germany_2_2='Swamp Lord';var Germany_2_3='Swamp Spirit';var Germany_2_4='Werebear';
		var Germany_3='Прокълнато село';var Germany_3_1='Хун';var Germany_3_2='Древен';var Germany_3_3='Nachzehrer';var Germany_3_4='Abomination';
		var Germany_4='Хълма на мъртвеца';var Germany_4_1='Войн скелет';var Germany_4_2='Побеснял скелет';var Germany_4_3='Lich';var Germany_4_4='Necromancer Prince';
		var Germany_5='Вандалското село';var Germany_5_1='Вандал Войн';var Germany_5_2='Жарл';var Germany_5_3='Черен боец';var Germany_5_4='Мъртъв Рицар';
		var Germany_6='Мина';var Germany_6_1='Пазач';var Germany_6_2='Draug';var Germany_6_3='Stone Golem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Тевтонски лагер';var Germany_7_1='Варварин';var Germany_7_2='Тевтонски герой';var Germany_7_3='Тевтонски лорд';var Germany_7_4='Seidr';
		var Germany_8='Планината Коман';var Germany_8_1='Infernal Springbok';var Germany_8_2='Съблезъб тигър';var Germany_8_3='Dragon Whelp';var Germany_8_4='Дракон';
		var Africa='Африка';
		var Africa_1='Вуду Храм';var Africa_1_1='Кобра';var Africa_1_2='Гигантски скорпион';var Africa_1_3='Awakened Mummy';var Africa_1_4='Seth Priest';
		var Africa_2='Мостът';var Africa_2_1='Събирач на такси';var Africa_2_2='Човекоядец';var Africa_2_3='Tribal Warrior';var Africa_2_4='Bone Shaman';
		var Africa_3='Кървавата пещера';var Africa_3_1='Кървав вълк';var Africa_3_2='Гигантски бръмбар';var Africa_3_3='Fire Dancer';var Africa_3_4='Fire Demon';
		var Africa_4='Забравено пристанище';var Africa_4_1='Крокодил';var Africa_4_2='Undead Holder';var Africa_4_3='Гигантска бяла змия';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Племето Умпокта';var Africa_5_1='Племенен Войн';var Africa_5_2='Племенен Шаман';var Africa_5_3='Дух Войн';var Africa_5_4='Seth High Priest';
		var Africa_6='Керван';var Africa_6_1='Шпионин';var Africa_6_2='Охрана на Кервана';var Africa_6_3='Елитна Охрана';var Africa_6_4='Търговец на роби';
		var Africa_7='Оазиса Месоай';var Africa_7_1='Слон';var Africa_7_2='Леопард';var Africa_7_3='Лъв демон';var Africa_7_4='Слон демон';
		var Africa_8='Планината на Антилопите';var Africa_8_1='Прокълната антилопа';var Africa_8_2='Гигантски паяк';var Africa_8_3='Шаман';var Africa_8_4='High Shaman';
	}
	else if(GCAO_lang=='ee'){
		var text='Ruumi sisenedes näed Djori, üht iidset Prantsuse programmeerijat, kes töötab välja uut tüüpi virtuaalvõitlust ja –treeningut. <br>Tema lähedal on suur superarvuti, valmis looma hologrammi mis tahes monstrumile või mängijale, stimuleerimaks võitlust sinuga ning tulemuste kuvamiseks...  <br><br>Kas oled võitluseks valmis?';
		var Skill='Oskus';
		var Agility='Väledus';
		var Charisma='Karisma';
		var Armour='Rüü';
		var Damage='Kahju';
		var ChanceForCriticalDamage='Kriitilise löögi võimalus';
		var ChanceToBlockAHit='Löögi blokeerimise võimalus';
		var ChanceForCriticalDamage='Kriitilistest löökidest hoidumise võimalus';
		var Italy='Itaalia';
		var Italy_1='Sünged metsad';var Italy_1_1='Rott';var Italy_1_2='Ilves';var Italy_1_3='Hunt';var Italy_1_4='Karu';
		var Italy_2='Piraatide sadam';var Italy_2_1='Põgenenud ori';var Italy_2_2='Korrumpeerunud sõdur';var Italy_2_3='Mõrtsukas ';var Italy_2_4='Kapten ';
		var Italy_3='Udused mäed';var Italy_3_1='Tabamatu ohvitser';var Italy_3_2='Harpüia';var Italy_3_3='Kerberos';var Italy_3_4='Meduusa';
		var Italy_4='Huntide koobas';var Italy_4_1='Metssiga';var Italy_4_2='Huntide kari';var Italy_4_3='Alfahunt';var Italy_4_4='Libahunt';
		var Italy_5='Iidne tempel';var Italy_5_1='Kultuse valvur';var Italy_5_2='Libarott';var Italy_5_3='Minotauros';var Italy_5_4='Minotauroste pealik';
		var Italy_6='Barbarite küla';var Italy_6_1='Barbar';var Italy_6_2='Barbarsõbalane';var Italy_6_3='Berserk';var Italy_6_4='Barbarite pealik';
		var Italy_7='Bandiitide laager';var Italy_7_1='Põgenev sõdur';var Italy_7_2='Tabamatu palgasõdur';var Italy_7_3='Tapja';var Italy_7_4='Bandiitide pealik';
		var Germany='Germaania';
		var Germany_1='Templikoobas';var Germany_1_1='Leegionär';var Germany_1_2='Käsilane';var Germany_1_3='Centurion';var Germany_1_4='Hingetu';
		var Germany_2='Roheline mets';var Germany_2_1='Hiiglaslik metssiga';var Germany_2_2='Soolord';var Germany_2_3='Soovaim';var Germany_2_4='Libakaru';
		var Germany_3='Neetud küla';var Germany_3_1='Hunn';var Germany_3_2='Iidne';var Germany_3_3='Nachzehrer';var Germany_3_4='Jälkus';
		var Germany_4='Surmamägi';var Germany_4_1='Skelettsõjamees';var Germany_4_2='Skelettberserk';var Germany_4_3='Lich';var Germany_4_4='Surnumanajate prints';
		var Germany_5='Vandaalide küla';var Germany_5_1='Vandaalsõjamees';var Germany_5_2='Jari';var Germany_5_3='Tume sõdalane';var Germany_5_4='Surmarüütel';
		var Germany_6='Kaevandus';var Germany_6_1='Valvur';var Germany_6_2='Draug';var Germany_6_3='Kivigolem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Teutoonide laager';var Germany_7_1='Barbar';var Germany_7_2='Teutoonide kangelane';var Germany_7_3='Teutoonide isand';var Germany_7_4='Seidr';
		var Germany_8='Komani mägi';var Germany_8_1='Põrgukits';var Germany_8_2='Mõõkhambuline tiiger';var Germany_8_3='Noor draakon';var Germany_8_4='Draakon';
		var Africa='Aafrika';
		var Africa_1='Voodoo Tempel';var Africa_1_1='Kobra';var Africa_1_2='Hiigelskorpion';var Africa_1_3='Äratatud muumia';var Africa_1_4='Sethi Preester';
		var Africa_2='Sild';var Africa_2_1='Maksukoguja';var Africa_2_2='Inimsööja';var Africa_2_3='Hõimusõdalane';var Africa_2_4='Skelettshamaan';
		var Africa_3='Verekoobas';var Africa_3_1='Verehunt';var Africa_3_2='Hiiglaslik mardikas';var Africa_3_3='Tuletantsija';var Africa_3_4='Tuledeemon';
		var Africa_4='Kadunud sadam';var Africa_4_1='Krokodill';var Africa_4_2='Ebasurnud hoidja';var Africa_4_3='Hiiglaslik veemadu';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Umpokta Hõim';var Africa_5_1='Hõimusõdalane';var Africa_5_2='Hõimumaag';var Africa_5_3='Hingesõdalane';var Africa_5_4='Sethi ülempreester';
		var Africa_6='Karavan';var Africa_6_1='Spioon';var Africa_6_2='Karavani valvur';var Africa_6_3='Eliitvalvur';var Africa_6_4='Orjakaupmees';
		var Africa_7='Mesoai Oaas';var Africa_7_1='Elevant';var Africa_7_2='Puuma';var Africa_7_3='Deemonlik lõvi';var Africa_7_4='Deemonlik elevant';
		var Africa_8='Hüppekalju';var Africa_8_1='Neetud antiloop';var Africa_8_2='Hiigelämblik';var Africa_8_3='Shamaan';var Africa_8_4='Meisterlik Shamaan';
	}
	else if(GCAO_lang=='es'){
		var text='When you enter in the room, you see djor, one of the ancient French programmers, working over a new type of virtual fighting and training.<br>Near to him, there is a big super computer ready to create a hologram of any monster or any other player you want, in order to simulate a fight with you and display the results... <br><br>Are you ready to fight?';
		var Skill='Habilidad';
		var Agility='Agilidad';
		var Charisma='Carisma';
		var Armour='Armadura';
		var Damage='Daño';
		var ChanceForCriticalDamage='Posibilidad de daño critico';
		var ChanceToBlockAHit='Posibilidad de bloquer golpe';
		var ChanceForCriticalDamage='Posibilidad de bloquer golpes criticos';
		var Italy='Italia';
		var Italy_1='Bosque Sombrío';var Italy_1_1='Rata';var Italy_1_2='Lince';var Italy_1_3='Lobo';var Italy_1_4='Oso';
		var Italy_2='Puerto Pirata';var Italy_2_1='Esclavo Fugitivo';var Italy_2_2='Soldado Corrupto';var Italy_2_3='Asesino';var Italy_2_4='Capitán';
		var Italy_3='Montañas Nubladas';var Italy_3_1='Recluta Fugitivo';var Italy_3_2='Arpía';var Italy_3_3='Cerbero';var Italy_3_4='Medusa';
		var Italy_4='Cueva del Lobo';var Italy_4_1='Jabalí';var Italy_4_2='Manada de Lobos';var Italy_4_3='El Lobo Alfa';var Italy_4_4='Hombre Lobo';
		var Italy_5='Templo Antiguo';var Italy_5_1='Guardia Culturista';var Italy_5_2='Hombre Rata';var Italy_5_3='Minotauro';var Italy_5_4='Minotauro jefe';
		var Italy_6='Pueblo Bárbaro';var Italy_6_1='Barbaro';var Italy_6_2='Guerrero Barbaro';var Italy_6_3='Berserker';var Italy_6_4='Barbaro Jefe';
		var Italy_7='Campamento Bandido';var Italy_7_1='Soldado Renegado(1)';var Italy_7_2='Soldado Renegado(1)';var Italy_7_3='Sicario';var Italy_7_4='Bandido Jefe';
		var Germany='Germania';
		var Germany_1='La Cueva-Templo';var Germany_1_1='Legionario';var Germany_1_2='Myrmidon';var Germany_1_3='Centurion';var Germany_1_4='Deslmado';
		var Germany_2='El Bosque Verde';var Germany_2_1='Giant Wild Boar';var Germany_2_2='Swamp Lord';var Germany_2_3='Swamp Spirit';var Germany_2_4='Werebear';
		var Germany_3='La Aldea Maldita';var Germany_3_1='Huno';var Germany_3_2='Ancestral';var Germany_3_3='Nachzehrer';var Germany_3_4='Abomination';
		var Germany_4='La Colina Mortal';var Germany_4_1='Esqueleto Guerrero';var Germany_4_2='Esqueleto Berserker';var Germany_4_3='Lich';var Germany_4_4='Principe Nigromante';
		var Germany_5='Poblado Vándalo';var Germany_5_1='Guerrero Vándalo';var Germany_5_2='Jarl';var Germany_5_3='Competidor Malvado';var Germany_5_4='Caballero de la Muerte';
		var Germany_6='Mina';var Germany_6_1='Guardián';var Germany_6_2='Draug';var Germany_6_3='Golem de Piedra';var Germany_6_4='Serpiente Dragón';
		var Germany_7='Campamento Teutón';var Germany_7_1='Bárbaro';var Germany_7_2='Héroe Teutón';var Germany_7_3='Señor Teutón';var Germany_7_4='Seidr';
		var Germany_8='Montaña Rasgada';var Germany_8_1='Gacela Saltarina Infernal';var Germany_8_2='Tigre Dientes de Sable';var Germany_8_3='Cría de Dragon';var Germany_8_4='Dragon';
		var Africa='Africa';
		var Africa_1='El Tempo Vudù';var Africa_1_1='Cobra';var Africa_1_2='Escorpión Gigante';var Africa_1_3='Momia Despierta';var Africa_1_4='Sacerdote Seth';
		var Africa_2='El Puente';var Africa_2_1='Tax Collector';var Africa_2_2='Man Eater';var Africa_2_3='Tribal Warrior';var Africa_2_4='Bone Shaman';
		var Africa_3='La Cueva de Sangre';var Africa_3_1='Lobo Sangriento';var Africa_3_2='Escarabajo Gigante';var Africa_3_3='Danzador del Fuego';var Africa_3_4='Demonio de Fuego';
		var Africa_4='El Puerto Perdido';var Africa_4_1='Cocodrilo';var Africa_4_2='Portador Zombie';var Africa_4_3='Serpiente Gigante';var Africa_4_4='Mokele Mbembé';
		var Africa_5='La Tribu Umpokta';var Africa_5_1='Tribal Warrior';var Africa_5_2='Tribal Magician';var Africa_5_3='Spirit Warrior';var Africa_5_4='Seth High Priest';
		var Africa_6='Caravana';var Africa_6_1='Spy';var Africa_6_2='Caravan Guard';var Africa_6_3='Elite Guard';var Africa_6_4='Slave Merchant';
		var Africa_7='El Oasis Mesoai';var Africa_7_1='Elephant';var Africa_7_2='Cheetah';var Africa_7_3='Demon Lion';var Africa_7_4='Demon Elephant';
		var Africa_8='El Desfiladero';var Africa_8_1='Cursed Antelope';var Africa_8_2='Giant Spider';var Africa_8_3='Shaman';var Africa_8_4='High Shaman';
	}
	else{
		var text='When you enter in the room, you see djor, one of the ancient French programmers, working over a new type of virtual fighting and training.<br>Near to him, there is a big super computer ready to create a hologram of any monster or any other player you want, in order to simulate a fight with you and display the results... <br><br>Are you ready to fight?';
		var Skill='Skill';
		var Agility='Agility';
		var Charisma='Charisma';
		var Armour='Armour';
		var Damage='Damage';
		var ChanceForCriticalDamage='Chance for critical damage';
		var ChanceToBlockAHit='Chance to block a hit';
		var ChanceForCriticalDamage='Chance of avoiding critical hits';
		
		var Italy='Italy';
		var Italy_1='Grimwood';var Italy_1_1='Rat';var Italy_1_2='Lynx';var Italy_1_3='Wolf';var Italy_1_4='Bear';
		var Italy_2='Pirate Harbour';var Italy_2_1='Fled Slave';var Italy_2_2='Corrupt Soldier';var Italy_2_3='Assassin ';var Italy_2_4='Captain ';
		var Italy_3='Misty Mountains';var Italy_3_1='Elusive Recruit';var Italy_3_2='Harpy';var Italy_3_3='Cerberus';var Italy_3_4='Medusa';
		var Italy_4='Wolf Cave';var Italy_4_1='Wild Boar';var Italy_4_2='Wolf Pack';var Italy_4_3='Alphawolf';var Italy_4_4='Werewolf';
		var Italy_5='Ancient Temple';var Italy_5_1='Cultist Guard';var Italy_5_2='Wererat';var Italy_5_3='Minotaur';var Italy_5_4='Minotaur Chief';
		var Italy_6='Barbarian Village';var Italy_6_1='Barbarian';var Italy_6_2='Barbarian Warrior';var Italy_6_3='Berserker';var Italy_6_4='Barbarian Chief';
		var Italy_7='Bandit Camp';var Italy_7_1='Renegade Soldier';var Italy_7_2='Renegade Mercenary';var Italy_7_3='Assassinator';var Italy_7_4='Bandit Chief';
		var Germany='Germany';
		var Germany_1='Cave Temple';var Germany_1_1='Legionnaire';var Germany_1_2='Myrmidon';var Germany_1_3='Centurion';var Germany_1_4='Soulless';
		var Germany_2='The Green Forest';var Germany_2_1='Giant Wild Boar';var Germany_2_2='Swamp Lord';var Germany_2_3='Swamp Spirit';var Germany_2_4='Werebear';
		var Germany_3='Cursed Village';var Germany_3_1='Hun';var Germany_3_2='Ancient';var Germany_3_3='Nachzehrer';var Germany_3_4='Abomination';
		var Germany_4='Death Hill';var Germany_4_1='Skeleton Warrior';var Germany_4_2='Skeleton Berserker';var Germany_4_3='Lich';var Germany_4_4='Necromancer Prince';
		var Germany_5='Vandal Village';var Germany_5_1='Vandal Warrior';var Germany_5_2='Jarl';var Germany_5_3='Dark Fighter';var Germany_5_4='Death Knight';
		var Germany_6='Mine';var Germany_6_1='Guard';var Germany_6_2='Draug';var Germany_6_3='Stone Golem';var Germany_6_4='Tatzelwurm';
		var Germany_7='Teuton Camp';var Germany_7_1='Barbarian';var Germany_7_2='Teuton Hero';var Germany_7_3='Teuton Lord';var Germany_7_4='Seidr';
		var Germany_8='Koman Mountain';var Germany_8_1='Infernal Springbok';var Germany_8_2='Sabre-Tooth Tiger';var Germany_8_3='Dragon Whelp';var Germany_8_4='Dragon';
		var Africa='Africa';
		var Africa_1='Voodoo Temple';var Africa_1_1='Cobra';var Africa_1_2='Giant Scorpion';var Africa_1_3='Awakened Mummy';var Africa_1_4='Seth Priest';
		var Africa_2='Bridge';var Africa_2_1='Tax Collector';var Africa_2_2='Man Eater';var Africa_2_3='Tribal Warrior';var Africa_2_4='Bone Shaman';
		var Africa_3='Blood Cave';var Africa_3_1='Blood Wolf';var Africa_3_2='Giant Beetle';var Africa_3_3='Fire Dancer';var Africa_3_4='Fire Demon';
		var Africa_4='Lost Harbour';var Africa_4_1='Crocodile';var Africa_4_2='Undead Holder';var Africa_4_3='Giant Water Snake';var Africa_4_4='Mokele Mbembe';
		var Africa_5='Umpokta Tribe';var Africa_5_1='Tribal Warrior';var Africa_5_2='Tribal Magician';var Africa_5_3='Spirit Warrior';var Africa_5_4='Seth High Priest';
		var Africa_6='Caravan';var Africa_6_1='Spy';var Africa_6_2='Caravan Guard';var Africa_6_3='Elite Guard';var Africa_6_4='Slave Merchant';
		var Africa_7='Mesoai-Oasis';var Africa_7_1='Elephant';var Africa_7_2='Cheetah';var Africa_7_3='Demon Lion';var Africa_7_4='Demon Elephant';
		var Africa_8='Cliff Jumper';var Africa_8_1='Cursed Antelope';var Africa_8_2='Giant Spider';var Africa_8_3='Shaman';var Africa_8_4='High Shaman';
	}
	
	//document.getElementById('content').style.display='none';
	document.getElementById('mainnav').childNodes[0].firstChild.className='pngfix ';
	document.getElementById('mainnav').childNodes[1].firstChild.className='pngfix  current';
	
	document.getElementById('content').innerHTML = '<p class="buildingDesc"><img align="left" src="http://i617.photobucket.com/albums/tt260/goldisever/Apo/gladiator_vs_lion_by_miguelcoimbra-d3470mr.jpg">'+text+'<br><br><br><br></p>'+
	'<div style="margin-top: 0px;" class="contentItem"><h3>'+L_trainingSim+'</h3><div class="contentItem_content">'+
	'<table align="center" style="border:1px solid #af8e50;background-color:#ded8c6;padding:5px;"><tr><th></th><th>'+L_playerA+'</th><th>'+L_playerB+'</th></tr><tr><th>'+Skill+'</th><th><input type="text" id="skillA"></th><th><input type="text" id="skillB"></th></tr><tr><th>'+Agility+'</th><th><input type="text" id="agilityA"></th><th><input type="text" id="agilityB"></th></tr><tr><th>'+Charisma+'</th><th><input type="text" id="charismaA"></th><th><input type="text" id="charismaB"></th></tr><tr><th>'+Armour+'</th><th><input type="text" id="armorA"></th><th><input type="text" id="armorB"></th></tr><tr><th>'+Damage+' Min</th><th><input type="text" id="damageMinA"></th><th><input type="text" id="damageMinB"></th></tr><tr><th>'+Damage+' Max</th><th><input type="text" id="damageMaxA"></th><th><input type="text" id="damageMaxB"></th></tr><tr><th>Resistance</th><th><input type="text" id="resistanceA"></th><th><input type="text" id="resistanceB"></th></tr><tr><th>Block</th><th><input type="text" id="blockA"></th><th><input type="text" id="blockB"></th></tr><tr><th>Critic</th><th><input type="text" id="criticA"></th><th><input type="text" id="criticB"></th></tr><tr><th><input id="clearButton" class="button3" type="button" value="'+L_ClearAll+'"></th><th><input id="myStatButton" class="button2" type="button" value="'+L_staticsTitle+'"></th><th id="minion"></th></tr><tr><th></th><th id="player_sim_results"></th><th>'+
	''+
	'<span id="searchById" style="display:none;"><input type="text" id="player" value="Player&#39;s id" maxlength="9" size="8" style="margin-'+GCAO_right+':10px;color:grey;" onclick="if(this.value==\'Player\\\'s id\'){this.removeAttribute(\'value\');this.style.color=\'#513F2C\'}"><input class="button3" type="button" id="findStatById" value="find"></span>'+
	'<span id="searchByName" style="display:none;"><input type="text" id="playerName" value="Player" maxlength="20" size="8" style="margin-'+GCAO_right+':10px;color:grey;" onclick="if(this.value==\'Player\'){this.removeAttribute(\'value\');this.style.color=\'#513F2C\'}"><input class="button3" type="button" id="findStatByName" value="find"></span>'+
	'<span id="searchByItaly" style="display:none;"><select id="selectEnemyItaly" style="width:164px;"><option>'+L_selectEnemy+'</option></select></span>'+
	'<span id="searchByAfrica" style="display:none;"><select id="selectEnemyAfrica" style="width:164px;"><option>'+L_selectEnemy+'</option></select></span>'+
	'<span id="searchByGermany" style="display:none;"><select id="selectEnemyGermany" style="width:164px;"><option>'+L_selectEnemy+'</option></select></span>'+
	'</th></tr></table>'+
	''+
	'<br/><br/><div align="center"><input class="button2" type="button" value="'+L_go+'" id="simul"></div>'+
	'</div></div>'+
	'<br/><br/><div style="margin-top: 0px;display:none;" class="contentItem" id="resultBox"><h3>'+L_Results+'</h3><div class="contentItem_content">'+
	'<div align="center" ><b>'+L_winnigChance+' :</b> <span id="result"></span></div>'+
	'<br/><div align="center" ><b>'+L_PlayerAAvDamage+' :</b> <span id="myAvDam"></span></div>'+
	'<div align="center" ><b>'+L_PlayerBAvDamage+' :</b> <span id="hisAvDam"></span></div></div>';
	
	document.getElementById('simul').addEventListener('click', function(){launchSimulator();}, false); 
	document.getElementById('myStatButton').addEventListener('click', function(){putMyStats();}, false);
	document.getElementById('clearButton').addEventListener('click', function(){clearAllStats();}, false);
	document.getElementById('findStatById').addEventListener('click', function(){findPlayerStats();}, false);
	document.getElementById('findStatByName').addEventListener('click', function(){getPlayersIdFromPlayersName();}, false);
	document.getElementById('minion').innerHTML = '<select id="selectEnemyMethod" style="width:164px;"><option id="emptyOption">'+L_selectMethod+'</option></select>';
	document.getElementById('selectEnemyMethod').setAttribute('onchange',"var value=document.getElementById('selectEnemyMethod').value;document.getElementById('searchById').style.display='none';document.getElementById('searchByName').style.display='none';document.getElementById('searchByItaly').style.display='none';document.getElementById('searchByAfrica').style.display='none';document.getElementById('searchByGermany').style.display='none';if(value!='select' && document.getElementById('search'+value)){document.getElementById('search'+value).style.display='block'}");
	
	addMonstersElements(Italy,'ByItaly','Method');
	addMonstersElements(Africa,'ByAfrica','Method');
	addMonstersElements(Germany,'ByGermany','Method');
	addMonstersElements(L_byName,'ByName','Method');
	addMonstersElements(L_byID,'ById','Method');
	
	addPlaceElements(Italy_1,'loc','Italy');
	addMonstersElements(Italy_1_1,'ita_1_1','Italy');
	addMonstersElements(Italy_1_2,'ita_1_2','Italy');
	addMonstersElements(Italy_1_3,'ita_1_3','Italy');
	addBossElements(Italy_1_4,'ita_1_4','Italy');
	addPlaceElements(Italy_2,'loc','Italy');
	addMonstersElements(Italy_2_1,'ita_2_1','Italy');
	addMonstersElements(Italy_2_2,'ita_2_2','Italy');
	addMonstersElements(Italy_2_3,'ita_2_3','Italy');
	addBossElements(Italy_2_4,'ita_2_4','Italy');
	addPlaceElements(Italy_3,'loc','Italy');
	addMonstersElements(Italy_3_1,'ita_3_1','Italy');
	addMonstersElements(Italy_3_2,'ita_3_2','Italy');
	addMonstersElements(Italy_3_3,'ita_3_3','Italy');
	addBossElements(Italy_3_4,'ita_3_4','Italy');
	addPlaceElements(Italy_4,'loc','Italy');
	addMonstersElements(Italy_4_1,'ita_4_1','Italy');
	addMonstersElements(Italy_4_2,'ita_4_2','Italy');
	addMonstersElements(Italy_4_3,'ita_4_3','Italy');
	addBossElements(Italy_4_4,'ita_4_4','Italy');
	addPlaceElements(Italy_5,'loc','Italy');
	addMonstersElements(Italy_5_1,'ita_5_1','Italy');
	addMonstersElements(Italy_5_2,'ita_5_2','Italy');
	addMonstersElements(Italy_5_3,'ita_5_3','Italy');
	addBossElements(Italy_5_4,'ita_5_4','Italy');
	addPlaceElements(Italy_6,'loc','Italy');
	addMonstersElements(Italy_6_1,'ita_6_1','Italy');
	addMonstersElements(Italy_6_2,'ita_6_2','Italy');
	addMonstersElements(Italy_6_3,'ita_6_3','Italy');
	addBossElements(Italy_6_4,'ita_6_4','Italy');
	addPlaceElements(Italy_7,'loc','Italy');
	addMonstersElements(Italy_7_1,'ita_7_1','Italy');
	addMonstersElements(Italy_7_2,'ita_7_2','Italy');
	addMonstersElements(Italy_7_3,'ita_7_3','Italy');
	addBossElements(Italy_7_4,'ita_7_4','Italy');
	addPlaceElements(Africa_1,'loc','Africa');
	addMonstersElements(Africa_1_1,'afr_1_1','Africa');
	addMonstersElements(Africa_1_2,'afr_1_2','Africa');
	addMonstersElements(Africa_1_3,'afr_1_3','Africa');
	addBossElements(Africa_1_4,'afr_1_4','Africa');
	addPlaceElements(Africa_2,'loc','Africa');
	addMonstersElements(Africa_2_1,'afr_2_1','Africa');
	addMonstersElements(Africa_2_2,'afr_2_2','Africa');
	addMonstersElements(Africa_2_3,'afr_2_3','Africa');
	addBossElements(Africa_2_4,'afr_2_4','Africa');
	addPlaceElements(Africa_3,'loc','Africa');
	addMonstersElements(Africa_3_1,'afr_3_1','Africa');
	addMonstersElements(Africa_3_2,'afr_3_2','Africa');
	addMonstersElements(Africa_3_3,'afr_3_3','Africa');
	addBossElements(Africa_3_4,'afr_3_4','Africa');
	addPlaceElements(Africa_4,'loc','Africa');
	addMonstersElements(Africa_4_1,'afr_4_1','Africa');
	addMonstersElements(Africa_4_2,'afr_4_2','Africa');
	addMonstersElements(Africa_4_3,'afr_4_3','Africa');
	addBossElements(Africa_4_4,'afr_4_4','Africa');
	addPlaceElements(Africa_5,'loc','Africa');
	addMonstersElements(Africa_5_1,'afr_5_1','Africa');
	addMonstersElements(Africa_5_2,'afr_5_2','Africa');
	addMonstersElements(Africa_5_3,'afr_5_3','Africa');
	addBossElements(Africa_5_4,'afr_5_4','Africa');
	addPlaceElements(Africa_6,'loc','Africa');
	addMonstersElements(Africa_6_1,'afr_6_1','Africa');
	addMonstersElements(Africa_6_2,'afr_6_2','Africa');
	addMonstersElements(Africa_6_3,'afr_6_3','Africa');
	addBossElements(Africa_6_4,'afr_6_4','Africa');
	addPlaceElements(Africa_7,'loc','Africa');
	addMonstersElements(Africa_7_1,'afr_7_1','Africa');
	addMonstersElements(Africa_7_2,'afr_7_2','Africa');
	addMonstersElements(Africa_7_3,'afr_7_3','Africa');
	addBossElements(Africa_7_4,'afr_7_4','Africa');
	addPlaceElements(Africa_8,'loc','Africa');
	addMonstersElements(Africa_8_1,'afr_8_1','Africa');
	addMonstersElements(Africa_8_2,'afr_8_2','Africa');
	addMonstersElements(Africa_8_3,'afr_8_3','Africa');
	addBossElements(Africa_8_4,'afr_8_4','Africa');
	addPlaceElements(Germany_1,'loc','Germany');
	addMonstersElements(Germany_1_1,'ger_1_1','Germany');
	addMonstersElements(Germany_1_2,'ger_1_2','Germany');
	addMonstersElements(Germany_1_3,'ger_1_3','Germany');
	addBossElements(Germany_1_4,'ger_1_4','Germany');
	addPlaceElements(Germany_2,'loc','Germany');
	addMonstersElements(Germany_2_1,'ger_2_1','Germany');
	addMonstersElements(Germany_2_2,'ger_2_2','Germany');
	addMonstersElements(Germany_2_3,'ger_2_3','Germany');
	addBossElements(Germany_2_4,'ger_2_4','Germany');
	addPlaceElements(Germany_3,'loc','Germany');
	addMonstersElements(Germany_3_1,'ger_3_1','Germany');
	addMonstersElements(Germany_3_2,'ger_3_2','Germany');
	addMonstersElements(Germany_3_3,'ger_3_3','Germany');
	addBossElements(Germany_3_4,'ger_3_4','Germany');
	addPlaceElements(Germany_4,'loc','Germany');
	addMonstersElements(Germany_4_1,'ger_4_1','Germany');
	addMonstersElements(Germany_4_2,'ger_4_2','Germany');
	addMonstersElements(Germany_4_3,'ger_4_3','Germany');
	addBossElements(Germany_4_4,'ger_4_4','Germany');
	addPlaceElements(Germany_5,'loc','Germany');
	addMonstersElements(Germany_5_1,'ger_5_1','Germany');
	addMonstersElements(Germany_5_2,'ger_5_2','Germany');
	addMonstersElements(Germany_5_3,'ger_5_3','Germany');
	addBossElements(Germany_5_4,'ger_5_4','Germany');
	addPlaceElements(Germany_6,'loc','Germany');
	addMonstersElements(Germany_6_1,'ger_6_1','Germany');
	addMonstersElements(Germany_6_2,'ger_6_2','Germany');
	addMonstersElements(Germany_6_3,'ger_6_3','Germany');
	addBossElements(Germany_6_4,'ger_6_4','Germany');
	addPlaceElements(Germany_7,'loc','Germany');
	addMonstersElements(Germany_7_1,'ger_7_1','Germany');
	addMonstersElements(Germany_7_2,'ger_7_2','Germany');
	addMonstersElements(Germany_7_3,'ger_7_3','Germany');
	addBossElements(Germany_7_4,'ger_7_4','Germany');
	addPlaceElements(Germany_8,'loc','Germany');
	addMonstersElements(Germany_8_1,'ger_8_1','Germany');
	addMonstersElements(Germany_8_2,'ger_8_2','Germany');
	addMonstersElements(Germany_8_3,'ger_8_3','Germany');
	addBossElements(Germany_8_4,'ger_8_4','Germany');
	
	document.getElementById('selectEnemyItaly').addEventListener('change', function(){statMinion(this.value);}, false);
	document.getElementById('selectEnemyAfrica').addEventListener('change', function(){statMinion(this.value);}, false);
	document.getElementById('selectEnemyGermany').addEventListener('change', function(){statMinion(this.value);}, false);
}

function addMonstersElements(name,id,where){
	var option = document.createElement('option');
	option.value= id;
	option.innerHTML = name;
	document.getElementById('selectEnemy'+where).appendChild(option);
}

function addBossElements(name,id,where){
	var option = document.createElement('option');
	option.value= id;
	option.innerHTML = name;
	option.setAttribute("style","color:red;");
	document.getElementById('selectEnemy'+where).appendChild(option);
}

function addPlaceElements(name,id,where){
	var option = document.createElement('optgroup');
	option.setAttribute("label",name);
	document.getElementById('selectEnemy'+where).appendChild(option);
}

function findPlayerStats(id){
	if(!id || id=='' || id==null){id=document.getElementById('player').value}
	document.getElementById('player_sim_results').innerHTML=L_searchData;
	GM_xmlhttpRequest({
		method: "GET",
		url: GCAO_siteurl + 'mod=player&p='+id+'&sh=' + GCAO_secureCode,
		onload: function(response){
			if(response.responseText.match('class="player_name_bg pngfix"')){
				var skill = response.responseText.match('<span id="char_f1" class="charstats_value">(\.+)</span>')[1];
				var agility = response.responseText.match('<span id="char_f2" class="charstats_value">(\.+)</span>')[1];
				var charisma = response.responseText.match('<span id="char_f4" class="charstats_value">(\.+)</span>')[1];
				var armor = response.responseText.match('<span id="char_panzer" class="charstats_value22">(\.+)</span>')[1];
				var degatMin = response.responseText.match('<span id="char_schaden" class="charstats_value22">(\.+)</span>')[1].split(' - ')[0];
				var degatMax = response.responseText.match('<span id="char_schaden" class="charstats_value22">(\.+)</span>')[1].split(' - ')[1];
				var str = response.responseText.split('<div class="charstats_bg" id="char_panzer_tt" ');
				str = str[1].split('%');
				str2 = str[0].split('>');
				str2 = str2[str2.length-1];
				var resistance = str2;
				str2 = str[1].split('>');
				str2 = str2[str2.length-1];
				var block = str2;
				str2 = str[2].split('>');
				str2 = str2[str2.length-1];
				var critic = str2;
				document.getElementById('player_sim_results').innerHTML='';
				setPlayerBStats(skill, agility, charisma, armor, degatMin, degatMax, resistance, critic, block);
			}
			else{document.getElementById('player_sim_results').innerHTML=L_playerNotFound;}	
		}
	});
}

function putMyStats(){
		if(Get_Cookie('simstats')){
			var code=Get_Cookie('simstats');
		}else{
			var code='##0##0##0##0##0##0##0##0##0##0##0##0##0##0';
		}
		
		document.getElementById('skillA').value = code.match(/##([^#]+)/g)[3].replace(/#/g,'')*1;
		document.getElementById('agilityA').value = code.match(/##([^#]+)/g)[4].replace(/#/g,'')*1;
		document.getElementById('charismaA').value = code.match(/##([^#]+)/g)[6].replace(/#/g,'')*1;
		document.getElementById('armorA').value = code.match(/##([^#]+)/g)[7].replace(/#/g,'')*1;
		document.getElementById('damageMinA').value = code.match(/##([^#]+)/g)[8].replace(/#/g,'')*1;
		document.getElementById('damageMaxA').value = code.match(/##([^#]+)/g)[9].replace(/#/g,'')*1;
		document.getElementById('resistanceA').value = code.match(/##([^#]+)/g)[10].replace(/#/g,'')*1;
		document.getElementById('criticA').value = code.match(/##([^#]+)/g)[12].replace(/#/g,'')*1;
		document.getElementById('blockA').value= code.match(/##([^#]+)/g)[11].replace(/#/g,'')*1;
		
}

function clearAllStats(){
	document.getElementById('skillA').value = '';
	document.getElementById('agilityA').value = '';
	document.getElementById('charismaA').value = '';
	document.getElementById('armorA').value = '';
	document.getElementById('damageMinA').value = '';
	document.getElementById('damageMaxA').value = '';
	document.getElementById('resistanceA').value ='';
	document.getElementById('criticA').value = '';
	document.getElementById('blockA').value= '';
	setPlayerBStats('', '', '', '', '', '', '', '', '');
	document.getElementById('emptyOption').selected=true;
	document.getElementById('resultBox').style.display='none';
}
	
function statMinion(minion){
	if(minion!='loc'){
		if(minion=='ita_1_1'){setPlayerBStats(6,8,6,45,2,2,15,0,0);}
		else if(minion=='ita_1_2'){setPlayerBStats(13,16,12,100,4,5,0,13,0);}
		else if(minion=='ita_1_3'){setPlayerBStats(19,24,22,223,6,7,0,13,0);}
		else if(minion=='ita_1_4'){setPlayerBStats(15,25,25,488,13,17,0,9,0);}
		else if(minion=='ita_2_1'){setPlayerBStats(24,34,18,289,8,10,0,8,0);}
		else if(minion=='ita_2_2'){setPlayerBStats(24,42,37,416,12,15,0,6,8);}
		else if(minion=='ita_2_3'){setPlayerBStats(42,68,24,438,15,18,0,12,6);}
		else if(minion=='ita_2_4'){setPlayerBStats(46,71,53,808,26,32,0,10,8);}
		else if(minion=='ita_3_1'){setPlayerBStats(30,42,26,508,16,19,0,5,5);}
		else if(minion=='ita_3_2'){setPlayerBStats(42,79,66,703,23,28,0,9,0);}
		else if(minion=='ita_3_3'){setPlayerBStats(68,51,110,1399,25,31,0,18,0);}
		else if(minion=='ita_3_4'){setPlayerBStats(86,104,120,1608,35,43,0,15,5);}
		else if(minion=='ita_4_1'){setPlayerBStats(33,46,46,2282,40,49,0,12,0);}
		else if(minion=='ita_4_2'){setPlayerBStats(91,109,72,1793,48,58,0,20,0);}
		else if(minion=='ita_4_3'){setPlayerBStats(93,113,105,1528,50,61,0,20,0);}
		else if(minion=='ita_4_4'){setPlayerBStats(94,121,142,2516,66,82,0,18,0);}
		else if(minion=='ita_5_1'){setPlayerBStats(140,196,122,6204,118,145,0,8,7);}
		else if(minion=='ita_5_2'){setPlayerBStats(270,352,151,3605,133,163,0,17,0);}
		else if(minion=='ita_5_3'){setPlayerBStats(148,129,336,3481,182,223,0,12,8);}
		else if(minion=='ita_5_4'){setPlayerBStats(234,436,382,5261,192,235,0,18,12);}
		else if(minion=='ita_6_1'){setPlayerBStats(168,236,157,4040,150,184,0,6,9);}
		else if(minion=='ita_6_2'){setPlayerBStats(171,239,266,3741,140,172,0,8,9);}
		else if(minion=='ita_6_3'){setPlayerBStats(303,226,226,2771,237,290,0,15,7);}
		else if(minion=='ita_6_4'){setPlayerBStats(364,453,425,5792,162,199,0,15,10);}
		else if(minion=='ita_7_1'){setPlayerBStats(180,252,140,7372,135,166,0,10,5);}
		else if(minion=='ita_7_2'){setPlayerBStats(168,264,235,9547,142,174,0,8,5);}
		else if(minion=='ita_7_3'){setPlayerBStats(415,493,145,3854,242,298,0,13,0);}
		else if(minion=='ita_7_4'){setPlayerBStats(440,616,492,5100,230,282,0,12,9);}
		else if(minion=='afr_1_1'){setPlayerBStats(97,115,73,1852,50,62,0,15,0);}
		else if(minion=='afr_1_2'){setPlayerBStats(96,156,56,3601,54,66,0,15,0);}
		else if(minion=='afr_1_3'){setPlayerBStats(59,59,95,3563,73,89,0,9,0);}
		else if(minion=='afr_1_4'){setPlayerBStats(171,252,319,1225,105,129,0,13,7);}
		else if(minion=='afr_2_1'){setPlayerBStats(72,100,189,1306,38,47,0,8,2);}
		else if(minion=='afr_2_2'){setPlayerBStats(57,79,133,3546,87,107,0,12,0);}
		else if(minion=='afr_2_3'){setPlayerBStats(178,264,102,2113,58,71,0,11,9);}
		else if(minion=='afr_2_4'){setPlayerBStats(225,344,258,2053,113,139,0,11,9);}
		else if(minion=='afr_3_1'){setPlayerBStats(110,126,112,1614,67,83,0,13,0);}
		else if(minion=='afr_3_2'){setPlayerBStats(51,43,114,5325,88,108,0,8,0);}
		else if(minion=='afr_3_3'){setPlayerBStats(202,189,204,1460,97,119,0,20,0);}
		else if(minion=='afr_3_4'){setPlayerBStats(192,302,369,1694,73,90,0,17,0);}
		else if(minion=='afr_4_1'){setPlayerBStats(90,110,78,4180,90,110,0,11,0);}
		else if(minion=='afr_4_2'){setPlayerBStats(49,51,68,5658,98,120,0,8,9);}
		else if(minion=='afr_4_3'){setPlayerBStats(147,102,85,5369,90,111,0,13,0);}
		else if(minion=='afr_4_4'){setPlayerBStats(178,196,232,7588,125,154,0,14,0);}
		else if(minion=='afr_5_1'){setPlayerBStats(193,270,180,5152,158,195,0,7,8);}
		else if(minion=='afr_5_2'){setPlayerBStats(258,421,421,2006,92,113,0,15,5);}
		else if(minion=='afr_5_3'){setPlayerBStats(155,124,249,22874,109,134,0,17,8);}
		else if(minion=='afr_5_4'){setPlayerBStats(322,515,869,5236,283,347,0,14,9);}
		else if(minion=='afr_6_1'){setPlayerBStats(295,350,222,2188,154,189,0,10,5);}
		else if(minion=='afr_6_2'){setPlayerBStats(250,382,286,5018,112,137,0,8,12);}
		else if(minion=='afr_6_3'){setPlayerBStats(418,651,195,2779,171,210,0,10,15);}
		else if(minion=='afr_6_4'){setPlayerBStats(408,604,672,6250,162,199,0,12,8);}
		else if(minion=='afr_7_1'){setPlayerBStats(142,166,232,8514,175,215,0,9,0);}
		else if(minion=='afr_7_2'){setPlayerBStats(408,537,268,4832,133,163,0,14,0);}
		else if(minion=='afr_7_3'){setPlayerBStats(378,565,459,10084,217,267,0,16,0);}
		else if(minion=='afr_7_4'){setPlayerBStats(225,489,489,15005,292,359,0,11,0);}
		else if(minion=='afr_8_1'){setPlayerBStats(350,489,315,6939,184,226,0,7,0);}
		else if(minion=='afr_8_2'){setPlayerBStats(390,473,364,9143,192,235,0,12,0);}
		else if(minion=='afr_8_3'){setPlayerBStats(364,509,509,7148,240,294,0,13,0);}
		else if(minion=='afr_8_4'){setPlayerBStats(577,882,698,4488,339,416,0,14,8);}
		else if(minion=='ger_1_1'){setPlayerBStats(100,140,140,5593,69,85,0,7,13);}
		else if(minion=='ger_1_2'){setPlayerBStats(148,245,94,6486,74,91,0,5,15);}
		else if(minion=='ger_1_3'){setPlayerBStats(165,269,154,7918,76,93,0,7,13);}
		else if(minion=='ger_1_4'){setPlayerBStats(171,299,279,9464,140,172,0,13,0);}
		else if(minion=='ger_2_1'){setPlayerBStats(96,134,115,4797,101,124,0,8,7);}
		else if(minion=='ger_2_2'){setPlayerBStats(116,101,182,7128,89,109,0,5,15);}
		else if(minion=='ger_2_3'){setPlayerBStats(195,378,252,1950,138,170,0,13,0);}
		else if(minion=='ger_2_4'){setPlayerBStats(141,286,110,5987,271,333,0,16,0);}
		else if(minion=='ger_3_1'){setPlayerBStats(165,231,168,3657,64,79,0,16,0);}
		else if(minion=='ger_3_2'){setPlayerBStats(167,128,192,6174,112,138,0,9,0);}
		else if(minion=='ger_3_3'){setPlayerBStats(117,140,304,6514,185,227,0,15,0);}
		else if(minion=='ger_3_4'){setPlayerBStats(230,415,369,7641,142,174,0,12,0);}
		else if(minion=='ger_4_1'){setPlayerBStats(81,227,182,4288,100,122,0,10,8);}
		else if(minion=='ger_4_2'){setPlayerBStats(204,309,166,6386,125,154,0,5,15);}
		else if(minion=='ger_4_3'){setPlayerBStats(227,196,392,2629,107,132,0,15,10);}
		else if(minion=='ger_4_4'){setPlayerBStats(306,504,504,6714,144,176,0,10,15);}
		else if(minion=='ger_5_1'){setPlayerBStats(236,477,294,8429,194,238,0,5,10);}
		else if(minion=='ger_5_2'){setPlayerBStats(270,264,529,6207,249,306,0,10,5);}
		else if(minion=='ger_5_3'){setPlayerBStats(401,374,636,15695,214,260,0,12,0);}
		else if(minion=='ger_5_4'){setPlayerBStats(463,534,648,16464,285,350,0,16,0);}
		else if(minion=='ger_6_1'){setPlayerBStats(327,457,343,9453,251,309,0,5,15);}		
		else if(minion=='ger_6_2'){setPlayerBStats(476,548,548,8049,258,317,0,11,9);}			
		else if(minion=='ger_6_3'){setPlayerBStats(166,310,310,22661,222,272,0,8,8);}			
		else if(minion=='ger_6_4'){setPlayerBStats(282,514,632,19903,330,405,0,7,8);}	
		else if(minion=='ger_7_1'){setPlayerBStats(395,553,355,8647,261,320,0,12,0);}				
		else if(minion=='ger_7_2'){setPlayerBStats(342,478,598,7530,228,280,0,13,7);}					
		else if(minion=='ger_7_3'){setPlayerBStats(456,798,758,8369,263,323,0,13,12);}
		else if(minion=='ger_7_4'){setPlayerBStats(678,1156,867,10054,399,490,0,15,20);}
		else if(minion=='ger_8_1'){setPlayerBStats(526,737,327,12177,270,331,0,9,0);}
		else if(minion=='ger_8_2'){setPlayerBStats(624,666,541,11076,329,404,0,18,0);}
		else if(minion=='ger_8_3'){setPlayerBStats(590,1032,619,15060,327,401,0,17,0);}
		else if(minion=='ger_8_4'){setPlayerBStats(480,504,1092,21676,480,589,0,12,0);}
		else{
			setPlayerBStats('','','','','','','','','');
			document.getElementById('player_sim_results').innerHTML=L_noStats+' <img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/crying.png" style="position:absolute;">';
		}
	}else{
		setPlayerBStats('','','','','','','','','');
		document.getElementById('player_sim_results').innerHTML=L_thisIsLocation+' <img src="http://i617.photobucket.com/albums/tt260/goldisever/GCAO/tongue.png" style="position:absolute;">';
	}
}

function setPlayerBStats(skill, agility, charisma, armor, damageMin, damageMax, resistance, critic, block){
	document.getElementById('player_sim_results').innerHTML='';
	document.getElementById('skillB').value = skill;
	document.getElementById('agilityB').value = agility;
	document.getElementById('charismaB').value = charisma;
	document.getElementById('armorB').value = armor;
	document.getElementById('damageMinB').value = damageMin;
	document.getElementById('damageMaxB').value = damageMax;
	document.getElementById('resistanceB').value = resistance;
	document.getElementById('criticB').value = critic;
	document.getElementById('blockB').value= block;
}

function simulateBegin(fights){
	var skill = document.getElementById('skillA').value;
	var agility = document.getElementById('agilityA').value;
	var charisma = document.getElementById('charismaA').value;
	var block = document.getElementById('blockA').value;
	var resistance = document.getElementById('resistanceA').value;
	var ARMOR = document.getElementById('armorA').value;
	var damageMin = document.getElementById('damageMinA').value;
	var damageMax = document.getElementById('damageMaxA').value;
	var critDamage = document.getElementById('criticA').value;
	
	return simulate(skill, agility, charisma, block, resistance, ARMOR, damageMin, damageMax, critDamage, 100000, fights, 20);
}

function launchSimulator(){
	var array = simulateBegin(1000);
	document.getElementById('result').innerHTML = parseInt(100*array[0]/(array[0]+array[1]))+'%';
	document.getElementById('myAvDam').innerHTML = array[3];
	document.getElementById('hisAvDam').innerHTML = array[4];
	document.getElementById('resultBox').style.display='block';
}

//################################################################################################################################
//## GET PLAYER'S ID FROM PLAYER'S NAME
//################################################################################################################################
function getPlayersIdFromPlayersName(){
	var PlayerName = document.getElementById('playerName').value;
	document.getElementById('player_sim_results').innerHTML='Searching id...';
	var code = '&s=s&xs='+PlayerName;
	var postUrl = GCAO_siteurl+'mod=highscore&submod=suche&sh='+GCAO_secureCode;
	var host = GCAO_siteurl.replace('//','').replace('http:','').replace('/game/index.php?','');
	
	var xhr = new XMLHttpRequest();
	var url=postUrl;
	xhr.open('POST', url, false);
	xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xhr.send(code);
	var found=false;
	if(xhr.responseText.match(/mod.player.p/i)){
		if(xhr.responseText.match(/mod.player.p.\d+[^>]+>([^<]+)<\/a>/i)[1].toLowerCase()==PlayerName.toLowerCase()){
			var playersID = xhr.responseText.match(/mod.player.p.(\d+)/i)[1];
			found = true;
		}
	}
	if(found==true){
		document.getElementById('player_sim_results').innerHTML='Id found...';
		findPlayerStats(playersID);
	}
	else{document.getElementById('player_sim_results').innerHTML='Player not found...';}
}

//################################################################################################################################
//## Add raided gold in the war camp member reports list
//################################################################################################################################
function warCampMemberGold(){
	var p = document.evaluate(".//p[@class='buildingDesc']",document.getElementById('content'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
	p.snapshotItem(0).innerHTML += '<br/><br/><input id="launchRaidedGold" type="button" class="button2" value="'+L_findGold+'" style="'+GCAO_left+':500px;top:374px;"><input id="hasBeenLaunched" type="hidden" value="0">   ';
	
	// the bar
	var bar = document.createElement('div');
	if(!document.getElementById('banner_top')){var top = 401-25;}
	else{var top = 401;}
	bar.innerHTML = '<div class="cooldown_bar" style="'+GCAO_left+':630px;top:'+top+'px;cursor:pointer;"><div id="pageBar" style="width: 0%;" class="cooldown_bar_fill cooldown_bar_fill_progress"></div><div class="cooldown_bar_text" id="cooldown_bar_fill_page">0</div></div>';
	p.snapshotItem(0).innerHTML += bar.innerHTML;
	
	document.getElementById('launchRaidedGold').addEventListener('click', function() { seeRaidedGold();	}, false); 
}
	
function seeRaidedGold(){
	if(document.getElementById('hasBeenLaunched').value == 0){
		document.getElementById('hasBeenLaunched').value = 1;

		// Compact the dates column
		var dates = document.evaluate("(.//th[@class='warcamp_member_report_date'])|(.//td[@class='warcamp_member_report_date'])",document.getElementById('content'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);

		for(var i =0;i<dates.snapshotLength;i++){
			dates.snapshotItem(i).style.width="170px";
			dates.snapshotItem(i).style.minWidth="170px";
		}	
		
		var trs = document.evaluate(".//div[@class='report_statistic']/table/tbody/tr",document.getElementById('content'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		var divs = document.evaluate(".//div[@class='report_statistic']",document.getElementById('content'),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		divs.snapshotItem(0).innerHTML = divs.snapshotItem(0).innerHTML.replace(/<th class=\"warcamp_member_report_details\">/i, '<th><img border="0" align="absmiddle" src="'+img_gold+'"></th><th class="warcamp_member_report_details">');
		var row = 1;
		var goldArray = new Array();
		var counter = 0;
		
		var inp = document.createElement('input');
		inp.setAttribute('type','hidden');
		inp.setAttribute('value',0);
		inp.setAttribute('id','counterReports');
		document.getElementById('content').appendChild(inp);
		searchRaidedGold(divs,trs,row,goldArray,counter);
	}
}

function isInTheGuild(str){
	if(str.match(/color:(green|blue)/i))
		return true;
	else
		return false;
}

function searchRaidedGold(divs,trs,row,goldArray,counter){
	if(row<trs.snapshotLength){
		var tds = document.evaluate(".//td",trs.snapshotItem(row),null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		
		GM_xmlhttpRequest({
			method: "GET",
			url: GCAO_siteurl + tds.snapshotItem(4).innerHTML.split('index.php?')[1].split('"')[0].replace(/amp;/g,''),
			onload: function(response){
				if(response.responseText.split("absmiddle").length>1){
					var gold = response.responseText.split("absmiddle")[0];
					goldArray[row] = gold.split(':')[gold.split(':').length-1].split('<')[0].replace(/[^(.|0-9)]/g,'');
					
					if(goldArray[row].length>5)
						goldArray[row] = '<b>'+goldArray[row]+'</b>';
					if(isInTheGuild(tds.snapshotItem(1).innerHTML))
						goldArray[row] = '<span style="color:green">'+goldArray[row]+'</span>';
					else if(isInTheGuild(tds.snapshotItem(2).innerHTML))
						goldArray[row] = '<span style="color:red">'+goldArray[row]+'</span>';
				}
				else
					goldArray[row]='';
					
				document.getElementById('counterReports').value++;
				
				var test = Math.floor(100*parseInt(document.getElementById('counterReports').value)/parseInt(trs.snapshotLength-1))+'%';
				document.getElementById('pageBar').style.width = test;
				document.getElementById('cooldown_bar_fill_page').innerHTML = document.getElementById('counterReports').value+' / '+(trs.snapshotLength-1) +' ('+test+')';
				
				if(document.getElementById('counterReports').value==trs.snapshotLength-1)
					document.getElementById('pageBar').className = "cooldown_bar_fill cooldown_bar_fill_ready";
									
				if(document.getElementById('counterReports').value==trs.snapshotLength-1){
					for(var i =0; i<goldArray.length;i++)
						divs.snapshotItem(0).innerHTML = divs.snapshotItem(0).innerHTML.replace(/<td class=\"warcamp_member_report_details\">/i, '<td>'+goldArray[i+2]+'</td><td title="done" class="warcamp_member_report_details">');
				}
			}
		});
		row++;
		searchRaidedGold(divs,trs,row,goldArray,counter)
	}
}

//################################################################################################################################
//## Top Scroll bar
//################################################################################################################################
function topScrollStatsBarSET(){
	var bgImage="";
	var newdiv = document.createElement('div');
	newdiv.setAttribute('id','topFixedStatsBar');
	newdiv.setAttribute('style','color:#DCBB96;background:url('+bgImage+') repeat-x scroll 0 -4px transparent;z-index:9000;position:fixed;top:0px;left:0px;right:0px;height:24px;display:none;line-height:24px;');
	newdiv.innerHTML='&nbsp;<b>Gladiatus Crazy Addon</b> v'+versionDotted;
	document.body.appendChild(newdiv);
	
	/*//buttons
	if(document.getElementById('ButtonsDiv')){
		document.getElementById('ButtonsDiv').setAttribute('defaultstyle', document.getElementById('ButtonsDiv').getAttribute('style'));
	}
	*/
	window.addEventListener("scroll", topScrollStatsBar, false);
}

function topScrollStatsBar(){
	var vscroll = (document.all ? document.scrollTop : window.pageYOffset);
	//document.getElementById('topFixedStatsBar').innerHTML=vscroll;
	if(parseInt(vscroll)>74){
		document.getElementById('topFixedStatsBar').style.display="inline";
		document.getElementById('icon_gold').setAttribute('style','z-index:9001;position:fixed;top:3px;');
		document.getElementById('sstat_gold_val').setAttribute('style','z-index:9001;position:fixed;top:3px;margin-left:18px;');
		document.getElementById('icon_rubies').setAttribute('style','z-index:9001;position:fixed;top:3px;');
		document.getElementById('sstat_ruby_val').setAttribute('style','z-index:9001;position:fixed;top:3px;margin-left:18px;');
		
		var link=document.getElementById('cooldown_bar_expedition').getElementsByTagName('a')[0].getAttribute('href');
		document.getElementById('icon_expeditionpoints').setAttribute('style','z-index:9001;position:fixed;top:-1px;cursor:pointer;');
		document.getElementById('expeditionpoints_value').setAttribute('style','z-index:9001;position:fixed;top:-2px;margin-left:28px;cursor:pointer;');
		document.getElementById('icon_expeditionpoints').setAttribute('onclick','document.location.href=\''+GCAO_siteurl.replace('index.php?','')+link+'\';');
		document.getElementById('expeditionpoints_value').setAttribute('onclick','document.location.href=\''+GCAO_siteurl.replace('index.php?','')+link+'\';');
		
		if(document.getElementById('cooldown_bar_dungeon').getElementsByTagName('a')){
			var link=document.getElementById('cooldown_bar_dungeon').getElementsByTagName('a')[0].getAttribute('href');
			document.getElementById('icon_dungeonpoints').setAttribute('style','z-index:9001;position:fixed;top:-1px;margin-left:100px;cursor:pointer;');
			document.getElementById('dungeonpoints_value').setAttribute('style','z-index:9001;position:fixed;top:-2px;margin-left:128px;cursor:pointer;');
			document.getElementById('icon_dungeonpoints').setAttribute('onclick','document.location.href=\''+GCAO_siteurl.replace('index.php?','')+link+'\';');
			document.getElementById('dungeonpoints_value').setAttribute('onclick','document.location.href=\''+GCAO_siteurl.replace('index.php?','')+link+'\';');
		}
		
		document.getElementById('header_values_ressources').setAttribute('style','padding-top:18px;');
		document.getElementById('header_values_general').setAttribute('style','padding-top:18px;');
		/*//buttons
		if(parseInt(vscroll)>149){
			document.getElementById('ButtonsDiv').setAttribute('style','z-index:9001;position:fixed;top:0px;right:0px;');
		}else{
			document.getElementById('ButtonsDiv').setAttribute('style',document.getElementById('ButtonsDiv').getAttribute('defaultstyle'));
		}*/
	}else{
		document.getElementById('topFixedStatsBar').style.display="none";
		document.getElementById('icon_gold').removeAttribute('style');
		document.getElementById('sstat_gold_val').removeAttribute('style');
		document.getElementById('icon_rubies').removeAttribute('style');
		document.getElementById('sstat_ruby_val').removeAttribute('style');
		
		document.getElementById('icon_expeditionpoints').removeAttribute('style');
		document.getElementById('expeditionpoints_value').removeAttribute('style');
		document.getElementById('icon_expeditionpoints').removeAttribute('onclick');
		document.getElementById('expeditionpoints_value').removeAttribute('onclick');
		
		document.getElementById('icon_dungeonpoints').removeAttribute('style');
		document.getElementById('dungeonpoints_value').removeAttribute('style');
		document.getElementById('icon_dungeonpoints').removeAttribute('onclick');
		document.getElementById('dungeonpoints_value').removeAttribute('onclick');
		
		document.getElementById('header_values_ressources').removeAttribute('style');
		document.getElementById('header_values_general').removeAttribute('style');
	}
}

//################################################################################################################################
//## DEBUGER
//################################################################################################################################
function c(callback){
	try{
		callback;
	}catch(e){
		DE(e);
	}
}

function DE(e){
	var line=(e.lineNumber)-1;//-1 for the script, -120 for the add-on
	if(GM_getValue('sb', false) == true){
		if(!document.getElementById('ErrorBox')){
			var img_error = '%3D';
			
			var ErrorBox=document.createElement('span');
			ErrorBox.setAttribute('id', 'ErrorBox');
			ErrorBox.setAttribute('style', 'z-index:3001;position:absolute;top:4px;cursor:pointer;opacity:0.7;left:4px;background-color:white;border:2px solid black;color:black;');
			ErrorBox.innerHTML='<table>'
			+'<tr><td><img src="'+img_error+'"></td>'
			+'<td><b>Gladiatus Crazy Addon</b>'
			+'</td></tr></table>'
			+'<table id="ErrorTable">'
			+'<tr><td colspan="3"><hr/></td></tr>'
			+'<tr><td><b>'+e.name+'</b></td><td>:</td><td>'+e.message+'</td></tr>'
			+'<tr><td><b>Line</b></td><td>:</td><td>'+line+'</td></tr>'
			+'<tr><td><b>Report</b></td><td>:</td><td id="reportStatus'+line+'">Reporting...</td></tr>'
			+'</table>';
			document.body.appendChild(ErrorBox);
			//for (var i in e) alert(i + ' = ' + e[i]);
		}else{
			var ErrorTr=document.createElement('tr');
			ErrorTr.setAttribute('style', 'border-top:1px solid black;');
			ErrorTr.innerHTML='<td colspan="3"><hr/></td>';
			document.getElementById('ErrorTable').appendChild(ErrorTr);
			var ErrorTr=document.createElement('tr');
			ErrorTr.setAttribute('style', 'border-top:1px solid black;');
			ErrorTr.innerHTML='<td><b>'+e.name+'</b></td><td>:</td><td>'+e.message+'</td>';
			document.getElementById('ErrorTable').appendChild(ErrorTr);
			var ErrorTr=document.createElement('tr');
			ErrorTr.innerHTML='<td><b>Line</b></td><td>:</td><td>'+line+'</td>';
			document.getElementById('ErrorTable').appendChild(ErrorTr);
			var ErrorTr=document.createElement('tr');
			ErrorTr.innerHTML='<td><b>Report</b></td><td>:</td><td id="reportStatus'+line+'">Reporting...</td>';
			document.getElementById('ErrorTable').appendChild(ErrorTr);
		}
	}
	if(GM_getValue('rs', true) == true){
		if(navigator.userAgent.toLowerCase().match(/chrome/i)){var browser='Chrome';}
		else if(navigator.userAgent.toLowerCase().match(/opera/i)){var browser='Opera';}
		else{var browser='Firefox';}
		var reportedUrl=document.location.href.replace(/&/g,'|').replace('http://','').replace('/game/index.php?','|').replace('|sh='+GCAO_secureCode,'');
		var code='&error='+e.name+'|'+e.message+'&line='+line+'_|_Version='+version+'_|_Browser='+browser+'&url='+reportedUrl;
		code=code.replace(/ /gi,'_');
		GM_xmlhttpRequest({
			method: "GET",
			url: 'http://apo.users.uth.gr/gca/reportBug.php?'+code,
			onload: function(response){
				if(document.getElementById('reportStatus'+line+'')){
					document.getElementById('reportStatus'+line+'').innerHTML=response.responseText;
				}
			}
		});
	}else{
		if(document.getElementById('reportStatus'+line+'')){
			document.getElementById('reportStatus'+line+'').innerHTML='<font color="red">Blocked</font>';
		}
	}
}